fix: handle gql error correctly (#7507)

This commit is contained in:
DarkSky
2024-07-15 17:24:43 +08:00
committed by GitHub
parent b50c57a3fa
commit 1f50c1b890
3 changed files with 8 additions and 3 deletions

View File

@@ -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';