1
0
Fork 0
mirror of synced 2024-07-14 02:36:22 +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 ( if (
!drawerVisible || !drawerVisible ||
tempValue.some( tempValue.some(option => option.label && option.value)
option => option.label?.length > 0 && option.value?.length > 0
)
) { ) {
valid = true valid = true
} }