Skip to content

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

:rotating_light:

Vanessa014b2eab8d4f
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts
index 65c3c1ef76..70436f9610 100644
--- a/app/src/layout/Wnd.ts
+++ b/app/src/layout/Wnd.ts
@@ -681,7 +681,7 @@ export class Wnd {
}
if (item.headElement) {
if (item.headElement.classList.contains("item--focus")) {
- let latestHeadElement: HTMLElement
+ let latestHeadElement: HTMLElement;
Array.from(item.headElement.parentElement.children).forEach((headItem: HTMLElement) => {
if (!headItem.isSameNode(item.headElement)) {
if (!latestHeadElement) {
@@ -690,7 +690,7 @@ export class Wnd {
latestHeadElement = headItem;
}
}
- })
+ });
if (latestHeadElement && !closeAll) {
this.switchTab(latestHeadElement, true);
}