client: fix type error

This commit is contained in:
fantasticit 2022-05-26 12:30:38 +08:00
parent a316f97bb9
commit b44c8f831d
1 changed files with 1 additions and 1 deletions

View File

@ -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() };
};
/**