mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-28 15:56:39 +00:00
Merge pull request #1977 from Fredkiss3/fix/some-fixes
fix: bugs introduced in `separate-tables`
This commit is contained in:
934
package-lock.json
generated
934
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
|||||||
import ClientResourcesTable from "@app/components/ClientResourcesTable";
|
|
||||||
import type { InternalResourceRow } from "@app/components/ClientResourcesTable";
|
import type { InternalResourceRow } from "@app/components/ClientResourcesTable";
|
||||||
|
import ClientResourcesTable from "@app/components/ClientResourcesTable";
|
||||||
import SettingsSectionTitle from "@app/components/SettingsSectionTitle";
|
import SettingsSectionTitle from "@app/components/SettingsSectionTitle";
|
||||||
import { internal } from "@app/lib/api";
|
import { internal } from "@app/lib/api";
|
||||||
import { authCookieHeader } from "@app/lib/api/cookies";
|
import { authCookieHeader } from "@app/lib/api/cookies";
|
||||||
@@ -10,7 +10,6 @@ import type { ListAllSiteResourcesByOrgResponse } from "@server/routers/siteReso
|
|||||||
import type { AxiosResponse } from "axios";
|
import type { AxiosResponse } from "axios";
|
||||||
import { getTranslations } from "next-intl/server";
|
import { getTranslations } from "next-intl/server";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { cache } from "react";
|
|
||||||
|
|
||||||
export interface ClientResourcesPageProps {
|
export interface ClientResourcesPageProps {
|
||||||
params: Promise<{ orgId: string }>;
|
params: Promise<{ orgId: string }>;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export function TanstackQueryProvider({ children }: ReactQueryProviderProps) {
|
|||||||
defaultOptions: {
|
defaultOptions: {
|
||||||
queries: {
|
queries: {
|
||||||
retry: 2, // retry twice by default
|
retry: 2, // retry twice by default
|
||||||
staleTime: durationToMs(5, "minutes"),
|
staleTime: 0,
|
||||||
meta: {
|
meta: {
|
||||||
api
|
api
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ export const resourceQueries = {
|
|||||||
}),
|
}),
|
||||||
resourceClients: ({ resourceId }: { resourceId: number }) =>
|
resourceClients: ({ resourceId }: { resourceId: number }) =>
|
||||||
queryOptions({
|
queryOptions({
|
||||||
queryKey: ["RESOURCES", resourceId, "ROLES"] as const,
|
queryKey: ["RESOURCES", resourceId, "CLIENTS"] as const,
|
||||||
queryFn: async ({ signal, meta }) => {
|
queryFn: async ({ signal, meta }) => {
|
||||||
const res = await meta!.api.get<
|
const res = await meta!.api.get<
|
||||||
AxiosResponse<ListSiteResourceClientsResponse>
|
AxiosResponse<ListSiteResourceClientsResponse>
|
||||||
|
|||||||
Reference in New Issue
Block a user