mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 16:26:09 +01:00
🚨
This commit is contained in:
parent
4670092d22
commit
cb2560ffda
6 changed files with 22 additions and 23 deletions
|
|
@ -669,13 +669,13 @@ export const updateCellsValue = (protyle: IProtyle, nodeElement: HTMLElement, va
|
|||
if (!item) {
|
||||
return;
|
||||
}
|
||||
let hasSameContent = false
|
||||
let hasSameContent = false;
|
||||
oldValue.mSelect.find((mSelectItem) => {
|
||||
if (mSelectItem.content === item) {
|
||||
hasSameContent = true
|
||||
return true
|
||||
hasSameContent = true;
|
||||
return true;
|
||||
}
|
||||
})
|
||||
});
|
||||
if (hasSameContent) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -683,8 +683,8 @@ export const updateCellsValue = (protyle: IProtyle, nodeElement: HTMLElement, va
|
|||
newMSelectValue.push({
|
||||
content: item,
|
||||
color: colorIndex.toString()
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
value = oldValue.mSelect.concat(newMSelectValue);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue