Skip to content

Commit

Permalink
🎨 #11484
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Nov 17, 2024
1 parent 317e84d commit 7820165
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions app/src/protyle/render/av/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,21 +133,21 @@ 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;
}
// 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;
// }
transaction(protyle, [{
action: "updateAttrViewColOption",
id: colId,
Expand Down

0 comments on commit 7820165

Please sign in to comment.