fix: only display error handler span if toggled on

This commit is contained in:
Ruben Fiszel
2022-10-04 14:38:10 +02:00
parent f41906084c
commit f2be15a7e7
@@ -51,11 +51,13 @@
</div>
<div class="w-full truncate block">
<span
>{$flowStore.value.failure_module?.summary ||
($flowStore.value.failure_module?.value.type === 'rawscript'
? `Inline ${$flowStore.value.failure_module?.value.language}`
: 'Select a script')}</span
>
{#if Boolean($flowStore.value.failure_module)}
<span
>{$flowStore.value.failure_module?.summary ||
($flowStore.value.failure_module?.value.type === 'rawscript'
? `Inline ${$flowStore.value.failure_module?.value.language}`
: 'Select a script')}</span
>
{/if}
</div>
</div>