1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00

Simplify condition

This commit is contained in:
Mel O'Hagan 2022-04-08 23:24:46 +01:00
parent fafce24d5b
commit fdca96609b

View file

@ -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
}