Skip to content

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

:bug: Refresh pinned document children after import

Daniel9177b9dd8997
diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts
index 4362bb6030..2836ee8df1 100644
--- a/app/src/layout/dock/Files.ts
+++ b/app/src/layout/dock/Files.ts
@@ -1657,6 +1657,7 @@ data-type="navigation-root" data-path="/" data-count="${item.subFileCount || 0}"
if (!rootID) {
return;
}
+ this.pinnedDocs?.scheduleRefresh();
const importedPath = data.parentPath === "/" ? `/${rootID}.sy` : `${data.parentPath}/${rootID}.sy`;
this.updateItemArrow(data.notebook, importedPath);
}
diff --git a/app/src/mobile/dock/MobileFiles.ts b/app/src/mobile/dock/MobileFiles.ts
index 7e59411e30..031723017d 100644
--- a/app/src/mobile/dock/MobileFiles.ts
+++ b/app/src/mobile/dock/MobileFiles.ts
@@ -1252,6 +1252,7 @@ export class MobileFiles extends Model {
if (!rootID) {
return;
}
+ this.pinnedDocs?.scheduleRefresh();
const importedPath = data.parentPath === "/" ? `/${rootID}.sy` : `${data.parentPath}/${rootID}.sy`;
this.updateItemArrow(data.notebook, importedPath);
}