Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: 锁定没有打开的页签后,点击关闭当前页签

Vanessae078a88733b1
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts
index d1f0c967f3..5edf4c7000 100644
--- a/app/src/dialog/processSystem.ts
+++ b/app/src/dialog/processSystem.ts
@@ -35,10 +35,10 @@ export const lockFile = (id: string) => {
getAllModels().editor.find((item) => {
if (item.editor.protyle.block.rootID === id) {
item.parent.parent.removeTab(item.parent.id);
- logElement.remove();
return true;
}
});
+ logElement.remove();
/// #endif
});
logElement.querySelector(".b3-button--text").addEventListener("click", () => {