From cd9a6319a0f80cc13bc8c2e4a4814c812a89126d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 17 Nov 2024 22:45:53 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/11484 --- app/src/protyle/render/av/select.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.ts index 1a4deab6a13..cbea8b2385d 100644 --- a/app/src/protyle/render/av/select.ts +++ b/app/src/protyle/render/av/select.ts @@ -133,21 +133,7 @@ export const setColOption = (protyle: IProtyle, data: IAV, target: HTMLElement, if (name === inputElement.value || !inputElement.value) { return; } - // let hasName = false; - // data.view.columns.find(column => { - // if (column.id === colId) { - // column.options.find((item) => { - // if (item.name === inputElement.value) { - // hasName = true; - // return true; - // } - // }); - // return true; - // } - // }); - // if (hasName) { - // return; - // } + // 不判断重名 https://github.com/siyuan-note/siyuan/issues/11484 transaction(protyle, [{ action: "updateAttrViewColOption", id: colId,