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: https://github.com/siyuan-note/siyuan/issues/13554
Vanessaa3fec2c9e884
diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.tsindex ba4f8ed34c..678a16e47f 100644--- a/app/src/protyle/render/av/select.ts+++ b/app/src/protyle/render/av/select.ts@@ -139,7 +139,7 @@ export const setColOption = (protyle: IProtyle, data: IAV, target: HTMLElement,if ((name === inputElement.value && desc === descElement.value) || !inputElement.value) {return;}- // 不判断重名 https://github.com/siyuan-note/siyuan/issues/11484+ // cell 不判断重名 https://github.com/siyuan-note/siyuan/issues/11484transaction(protyle, [{action: "updateAttrViewColOption",id: colId,@@ -163,13 +163,23 @@ export const setColOption = (protyle: IProtyle, data: IAV, target: HTMLElement,}]);data.view.columns.find(column => {if (column.id === colId) {+ // 重名不进行更新 https://github.com/siyuan-note/siyuan/issues/13554+ let hasName = false;column.options.find((item) => {- if (item.name === name) {- item.name = inputElement.value;- item.desc = descElement.value;+ if (item.name === inputElement.value) {+ hasName = true;return true;}});+ if (!hasName) {+ column.options.find((item) => {+ if (item.name === name) {+ item.name = inputElement.value;+ item.desc = descElement.value;+ return true;+ }+ });+ }return true;}});