fix(frontend): isValid when no properties (#1806)

This commit is contained in:
HugoCasa
2023-07-07 15:19:54 +02:00
committed by GitHub
parent 94a08209c7
commit 8e7db51cff

View File

@@ -69,6 +69,12 @@
$: script_path != '' && loadScript(script_path)
// set isValid to true when a script/flow without any properties is selected
$: runnable?.schema &&
runnable.schema.properties &&
Object.keys(runnable.schema.properties).length === 0 &&
(isValid = true)
const dispatch = createEventDispatcher()
async function loadScript(p: string | undefined): Promise<void> {