Simplify condition
This commit is contained in:
parent
fafce24d5b
commit
fdca96609b
|
@ -31,9 +31,7 @@
|
|||
$: {
|
||||
if (
|
||||
!drawerVisible ||
|
||||
tempValue.some(
|
||||
option => option.label?.length > 0 && option.value?.length > 0
|
||||
)
|
||||
tempValue.some(option => option.label && option.value)
|
||||
) {
|
||||
valid = true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue