Use network only for selector queries

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-09-03 12:10:37 +02:00
parent 8ee03b82b1
commit 781026d3e7
6 changed files with 6 additions and 6 deletions

View File

@@ -164,7 +164,7 @@ function FrameworkSelect({
name: keyof FormSchema;
}) {
const { __ } = useTranslate();
const data = useLazyLoadQuery<CreateAuditDialogFrameworksQuery>(frameworksQuery, { organizationId });
const data = useLazyLoadQuery<CreateAuditDialogFrameworksQuery>(frameworksQuery, { organizationId }, { fetchPolicy: "network-only" });
const frameworks = data?.organization?.frameworks?.edges?.map((edge) => edge.node).filter((node): node is NonNullable<typeof node> => node !== null) ?? [];
return (