Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/13791

Vanessa2322e722549d
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index cf6b14b919..62fbec5532 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -697,8 +697,10 @@ export const updateCellsValue = (protyle: IProtyle, nodeElement: HTMLElement, va
newValue = {
content: value,
id: oldValue.block.id,
- icon: oldValue.block.icon
};
+ if (oldValue.block.icon) {
+ newValue.icon = oldValue.block.icon;
+ }
}
const cellValue = genCellValue(type, newValue);
cellValue.id = cellId;