From e3512353ac86d0403704f546f583f2421be27e00 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 3 Nov 2020 09:39:42 +0000 Subject: [PATCH] Fix evil falsiness bug with frontend property settings checkboxes --- .../builder/src/components/userInterface/PropertyControl.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/components/userInterface/PropertyControl.svelte b/packages/builder/src/components/userInterface/PropertyControl.svelte index e9dfb0abfc..a05013d744 100644 --- a/packages/builder/src/components/userInterface/PropertyControl.svelte +++ b/packages/builder/src/components/userInterface/PropertyControl.svelte @@ -72,7 +72,7 @@ let temp = runtimeToReadableBinding(bindableProperties, value) - return !value && props.defaultValue !== undefined + return value == null && props.defaultValue !== undefined ? props.defaultValue : temp }