1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00

Ensure placeholder is null when undefined so avoid sometimes having a placeholder and sometimes not

This commit is contained in:
Andrew Kingston 2021-08-17 14:10:25 +01:00
parent 2496dd6f14
commit a2e4f44e7f

View file

@ -71,7 +71,7 @@
/>
{/if}
{#if settings && settings.length > 0}
{#each settings as setting}
{#each settings as setting (setting.key)}
{#if canRenderControl(setting)}
<PropertyControl
type={setting.type}
@ -83,8 +83,8 @@
{componentInstance}
onChange={val => updateProp(setting.key, val)}
props={{
options: setting.options,
placeholder: setting.placeholder,
options: setting.options || [],
placeholder: setting.placeholder || null,
}}
{bindings}
{componentDefinition}