improve runnable picker of app

This commit is contained in:
Ruben Fiszel
2024-03-29 18:30:44 +01:00
parent f4daef389c
commit c0aaa920b9
2 changed files with 3 additions and 1 deletions
@@ -167,6 +167,7 @@
(schemaStripped = stripSchema(fields, $stateId))
function stripSchema(inputs: AppInputs, s: any): Schema {
console.log('Strip schema', inputs)
if (inputs === undefined) {
return emptySchema()
}
@@ -665,6 +666,7 @@
: 'invisible h-0 overflow-hidden'}"
style={wrapperStyle}
>
<!-- {Object.keys(schemaStripped?.properties ?? {}).length > 0} -->
{#if render && (autoRefresh || forceSchemaDisplay) && schemaStripped && Object.keys(schemaStripped?.properties ?? {}).length > 0}
<div class="px-2 h-fit min-h-0">
<LightweightSchemaForm
@@ -46,7 +46,7 @@
type: 'runnableByPath',
path,
runType: 'script',
schema,
schema: schema.schema,
name: defaultIfEmptyString(schema.summary, path)
} as const