Browse Source

Simplify condition

master
Mel O'Hagan 5 years ago
parent
commit
e71166561a
  1. 4
      packages/builder/src/components/design/PropertiesPanel/PropertyControls/OptionsEditor/OptionsEditor.svelte

4
packages/builder/src/components/design/PropertiesPanel/PropertyControls/OptionsEditor/OptionsEditor.svelte

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

Loading…
Cancel
Save