An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: Close database item pages after removal https://github.com/siyuan-note/siyuan/issues/19858
Danielbd52130f0843
diff --git a/app/src/editor/databaseRow.ts b/app/src/editor/databaseRow.tsindex cbd0e8fd3b..2873b10528 100644--- a/app/src/editor/databaseRow.ts+++ b/app/src/editor/databaseRow.ts@@ -69,6 +69,10 @@ export const newDatabaseRowModel = (options: {if (destroyed || currentRenderVersion !== renderVersion || !previousBodyElement.isConnected) {return;}+ if (!element.querySelector(`[data-av-id="${data.avID}"]`)) {+ custom.tab.parent.removeTab(custom.tab.id);+ return;+ }// 保留当前内容,待属性和反链加载完成后一次替换,避免刷新期间出现空白。previousBodyElement.replaceWith(element);updateLayout(custom);diff --git a/app/src/protyle/render/av/openDatabaseRow.ts b/app/src/protyle/render/av/openDatabaseRow.tsindex 539f4f9736..5aa80010f3 100644--- a/app/src/protyle/render/av/openDatabaseRow.ts+++ b/app/src/protyle/render/av/openDatabaseRow.ts@@ -89,6 +89,10 @@ const openMobileDatabaseRow = (protyle: Pick<IProtyle, "app">, data: IDatabaseRoif (currentRenderVersion !== renderVersion || !previousBodyElement.isConnected) {return;}+ if (!element.querySelector(`[data-av-id="${data.avID}"]`)) {+ dialog.destroy();+ return;+ }// 保留当前内容,待属性和反链加载完成后一次替换,避免刷新期间出现空白。previousBodyElement.replaceWith(element);const primaryElement = element.querySelector<HTMLElement>('[data-primary="true"] [data-cell-value]');