mirror of https://github.com/fantasticit/think.git
client: fix type error
parent
a316f97bb9
commit
b44c8f831d
|
@ -211,7 +211,7 @@ export const useDocumentVersion = (
|
||||||
() => getDocumentVersion(documentId),
|
() => getDocumentVersion(documentId),
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
return { data: data || [], loading: isLoading, error, refresh: refetch };
|
return { data: data || [], loading: isLoading, error, refresh: () => refetch() };
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue