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: Improve database range selection paste handling https://github.com/siyuan-note/siyuan/issues/11975
Daniel257fa41bc629
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.tsindex 23423a98d9..28759e9a12 100644--- a/app/src/protyle/render/av/cell.ts+++ b/app/src/protyle/render/av/cell.ts@@ -831,7 +831,7 @@ export const updateCellsValue = async (protyle: IProtyle, nodeElement: HTMLEleme// relation 为全部更新,以下类型为添加if (type === "mAsset") {if (Array.isArray(value)) {- newValue = oldValue.mAsset.concat(value);+ newValue = (oldValue.mAsset || []).concat(value);} else if (typeof value !== "undefined" && typeof value !== "object") { // 不传入为删除,传入字符串不进行处理const htmlValue: IAVCellAssetValue[] = [];let link = protyle.lute.GetLinkDest(value);@@ -882,12 +882,12 @@ export const updateCellsValue = async (protyle: IProtyle, nodeElement: HTMLElemename: value});}- newValue = oldValue.mAsset.concat(htmlValue);+ newValue = (oldValue.mAsset || []).concat(htmlValue);}} else if (type === "mSelect" || type === "select") {// 不传入为删除if (typeof value === "string") {- const oldSelectValues = replaceSelectValues ? [] : oldValue.mSelect;+ const oldSelectValues = replaceSelectValues ? [] : oldValue.mSelect || [];const newMSelectValue: IAVCellSelectValue[] = [];let colorIndex = oldSelectValues.length;// 以逗号分隔,去重,去空,去换行后做为选项