mirror of https://github.com/fantasticit/think.git
client: fix navigate after delete document
This commit is contained in:
parent
f80a7b9d1b
commit
8e728391f2
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue