client: fix navigate after delete document

pull/84/head
fantasticit 2022-06-17 22:58:40 +08:00
parent f80a7b9d1b
commit 8e728391f2
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ export const DocumentDeletor: React.FC<IProps> = ({ wikiId, documentId, render,
});
};
onDelete ? onDelete() : navigate();
navigate();
onDelete && onDelete();
});
}, [wikiId, documentId, api, onDelete, currentWikiId, currentDocumentId]);