small fix

This commit is contained in:
Ruben Fiszel
2023-03-20 19:54:04 +01:00
parent 07743b45f6
commit 01a1712e49
2 changed files with 2 additions and 2 deletions
@@ -53,7 +53,7 @@
: capitalize(fieldTypeToTsType(fieldType))}
</Badge>
{#if !onlyStatic && componentInput.type && componentInput.type != 'eval'}
{#if !onlyStatic && componentInput?.type && componentInput.type != 'eval'}
<ToggleButtonGroup
bind:selected={componentInput.type}
on:selected={(e) => {
@@ -15,7 +15,7 @@
{#if inputSpecs}
<div class="w-full flex flex-col gap-4">
{#each Object.keys(inputSpecsConfiguration) as k}
{#if inputSpecs[k]?.ctype == undefined}
{#if inputSpecs[k] && inputSpecs[k]?.ctype == undefined}
{@const meta = inputSpecsConfiguration?.[k]}
<!-- {JSON.stringify(meta)} -->
<InputsSpecEditor