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/15128

Vanessa939ca5423110
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index 7d6eed7245..e538dd7557 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -877,31 +877,29 @@ export const updateCellsValue = async (protyle: IProtyle, nodeElement: HTMLEleme
}
cellValue.date.formattedContent = oldValue.date.formattedContent;
}
- if (objEquals(cellValue, oldValue)) {
- break;
- }
-
- doOperations.push({
- action: "updateAttrViewCell",
- id: cellId,
- avID,
- keyID: colId,
- rowID,
- data: cellValue
- });
+ if (!objEquals(cellValue, oldValue)) {
+ doOperations.push({
+ action: "updateAttrViewCell",
+ id: cellId,
+ avID,
+ keyID: colId,
+ rowID,
+ data: cellValue
+ });
- undoOperations.push({
- action: "updateAttrViewCell",
- id: cellId,
- avID,
- keyID: colId,
- rowID,
- data: oldValue
- });
- if (isCustomAttr) {
- item.innerHTML = genAVValueHTML(cellValue);
- } else {
- updateAttrViewCellAnimation(item, cellValue);
+ undoOperations.push({
+ action: "updateAttrViewCell",
+ id: cellId,
+ avID,
+ keyID: colId,
+ rowID,
+ data: oldValue
+ });
+ if (isCustomAttr) {
+ item.innerHTML = genAVValueHTML(cellValue);
+ } else {
+ updateAttrViewCellAnimation(item, cellValue);
+ }
}
}
if (getOperations) {