Fix SWR call

This commit is contained in:
Jackson Harper 2023-09-07 19:15:18 +08:00
parent ec508d80b0
commit e3d1a69c65

View file

@ -35,7 +35,7 @@ export function useGetLabelsQuery(): LabelsQueryResponse {
${labelFragment}
`
const { data, mutate, isValidating } = useSWR(query, publicGqlFetcher)
const { data, error, mutate, isValidating } = useSWR(query, publicGqlFetcher)
try {
if (data) {