mirror of
https://github.com/fantasticit/think.git
synced 2026-09-01 15:10:55 +08:00
client: fix navigate after delete document
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user