From b44c8f831d5dfa18d75564b00fe58ae201d05c9f Mon Sep 17 00:00:00 2001 From: fantasticit Date: Thu, 26 May 2022 12:30:38 +0800 Subject: [PATCH] client: fix type error --- packages/client/src/data/document.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/data/document.tsx b/packages/client/src/data/document.tsx index a7384ef..7ce156d 100644 --- a/packages/client/src/data/document.tsx +++ b/packages/client/src/data/document.tsx @@ -211,7 +211,7 @@ export const useDocumentVersion = ( () => getDocumentVersion(documentId), options ); - return { data: data || [], loading: isLoading, error, refresh: refetch }; + return { data: data || [], loading: isLoading, error, refresh: () => refetch() }; }; /**