mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
fix: unlink sub-wiki when remove workspace
This commit is contained in:
parent
c06d982c54
commit
acb7818bdd
1 changed files with 1 additions and 3 deletions
|
|
@ -385,9 +385,7 @@ const loadListeners = () => {
|
|||
const workspace = getWorkspace(id);
|
||||
await stopWatchWiki(workspace.name).catch(error => logger.error(error.message, error));
|
||||
await stopWiki(workspace.name).catch(error => logger.error(error.message, error));
|
||||
if (response === 1) {
|
||||
await removeWiki(workspace.name, workspace.isSubWiki && workspace.mainWikiToLink);
|
||||
}
|
||||
await removeWiki(workspace.name, workspace.isSubWiki && workspace.mainWikiToLink, response === 0);
|
||||
removeWorkspaceView(id);
|
||||
createMenu();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue