Kaynağa Gözat

:art: https://github.com/siyuan-note/siyuan/issues/11484

Vanessa 7 ay önce
ebeveyn
işleme
cd9a6319a0
1 değiştirilmiş dosya ile 1 ekleme ve 15 silme
  1. 1 15
      app/src/protyle/render/av/select.ts

+ 1 - 15
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,