client: fix hook dep

This commit is contained in:
fantasticit 2022-06-03 21:09:08 +08:00
parent 6da1283c95
commit 2d477ba698
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ export const DocumentPublicReader: React.FC<IProps> = ({ documentId, hideLogo =
pathname: currentWikiId ? '/share/document/[documentId]' : '/share/wiki/[wikiId]/document/[documentId]',
query: currentWikiId ? { documentId } : { wikiId: data.wikiId, documentId },
});
}, [currentWikiId, documentId, data.wikiId]);
}, [currentWikiId, documentId, data]);
const content = useMemo(() => {
if (error) {