From d457bf5c80f3433ae891ccbd3874cc01f129cf25 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 16 Jun 2025 19:03:02 +0200 Subject: [PATCH] nit showExpr --- frontend/src/lib/components/SchemaForm.svelte | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/lib/components/SchemaForm.svelte b/frontend/src/lib/components/SchemaForm.svelte index 6765265a98..860e3129be 100644 --- a/frontend/src/lib/components/SchemaForm.svelte +++ b/frontend/src/lib/components/SchemaForm.svelte @@ -239,7 +239,17 @@ }) $effect.pre(() => { ;[schema, args] + if (args && typeof args == 'object') { + let oneShowExpr = false + for (const key of fields) { + if (schema.properties?.[key.value]?.showExpr) { + oneShowExpr = true + } + } + if (!oneShowExpr) { + return + } for (const key in args) { args[key] }