mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 23:36:10 +01:00
This commit is contained in:
parent
80ebe9ba06
commit
1c0f18f626
1 changed files with 4 additions and 1 deletions
|
|
@ -1184,9 +1184,12 @@ export const cellValueIsEmpty = (value: IAVCellValue) => {
|
|||
if (value.type === "checkbox") {
|
||||
return false;
|
||||
}
|
||||
if (["text", "number", "block", "url", "phone", "email", "template"].includes(value.type)) {
|
||||
if (["text", "block", "url", "phone", "email", "template"].includes(value.type)) {
|
||||
return !value[value.type as "text"]?.content;
|
||||
}
|
||||
if (value.type === "number") {
|
||||
return !value.number?.isNotEmpty;
|
||||
}
|
||||
if (["mSelect", "mAsset", "select"].includes(value.type)) {
|
||||
if (value[(value.type === "select" ? "mSelect" : value.type) as "mSelect"]?.length > 0) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue