fix: handle gql error correctly (#7507)

This commit is contained in:
DarkSky authored and GitHub committed 2024-07-15 09:24:43 +00:00
1 parent b50c57a3fa
commit 1f50c1b890
3 files changed
+8 -3

No files matched your search

@@ -1,6 +1,6 @@
import { notify } from '@affine/component';
import { GraphQLError } from '@affine/graphql';
import { assertExists } from '@blocksuite/global/utils';
import { GraphQLError } from 'graphql';
import type { PropsWithChildren, ReactNode } from 'react';
import { useCallback } from 'react';
import type { SWRConfiguration } from 'swr';