An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: database
Vanessa42c87d5a9b7e
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.tsindex 2ea9909066..f17d32ba12 100644--- a/app/src/protyle/render/av/cell.ts+++ b/app/src/protyle/render/av/cell.ts@@ -4,6 +4,7 @@ import {openMenuPanel} from "./openMenuPanel";import {Menu} from "../../../plugin/Menu";import {updateAttrViewCellAnimation} from "./action";import {isCtrl} from "../../util/compatibility";+import {objEquals} from "../../../util/functions";export const getCalcValue = (column: IAVColumn) => {if (!column.calc || !column.calc.result) {@@ -438,6 +439,9 @@ const updateCellValue = (protyle: IProtyle, type: TAVCol, cellElements: HTMLEleminputValue.content = parseFloat(inputValue.content as string);inputValue.isNotEmpty = !!inputValue.content;}+ if (objEquals(inputValue, oldValue)) {+ return;+ }doOperations.push({action: "updateAttrViewCell",id: cellId,@@ -460,7 +464,9 @@ const updateCellValue = (protyle: IProtyle, type: TAVCol, cellElements: HTMLElem});updateAttrViewCellAnimation(item);});- transaction(protyle, doOperations, undoOperations);+ if (doOperations.length > 0) {+ transaction(protyle, doOperations, undoOperations);+ }setTimeout(() => {avMaskElement.remove();});diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.tsindex cffb18513a..b7076d11ae 100644--- a/app/src/protyle/render/av/render.ts+++ b/app/src/protyle/render/av/render.ts@@ -84,7 +84,7 @@ style="width: ${column.width || "200px"}">${getCalcValue(column) || '<svg><use xtext += `<span class="b3-chip b3-chip--info b3-chip--small" data-type="block-ref" data-id="${cell.value.block.id}" data-subtype="s">${window.siyuan.languages.openBy}</span>`;}} else if (cell.valueType === "number") {- text = `<span class="av__celltext" data-content="${cell.value?.number.content || ""}">${cell.value?.number.formattedContent || ""}</span>`;+ text = `<span class="av__celltext" data-content="${cell.value?.number.isNotEmpty ? cell.value?.number.content : ""}">${cell.value?.number.formattedContent || ""}</span>`;} else if (cell.valueType === "mSelect" || cell.valueType === "select") {cell.value?.mSelect?.forEach((item) => {text += `<span class="b3-chip b3-chip--middle" style="background-color:var(--b3-font-background${item.color});color:var(--b3-font-color${item.color})">${item.content}</span>`;