Ensure placeholder is null when undefined so avoid sometimes having a placeholder and sometimes not
This commit is contained in:
parent
a1aa2df3cd
commit
35b6920637
|
@ -71,7 +71,7 @@
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{#if settings && settings.length > 0}
|
{#if settings && settings.length > 0}
|
||||||
{#each settings as setting}
|
{#each settings as setting (setting.key)}
|
||||||
{#if canRenderControl(setting)}
|
{#if canRenderControl(setting)}
|
||||||
<PropertyControl
|
<PropertyControl
|
||||||
type={setting.type}
|
type={setting.type}
|
||||||
|
@ -83,8 +83,8 @@
|
||||||
{componentInstance}
|
{componentInstance}
|
||||||
onChange={val => updateProp(setting.key, val)}
|
onChange={val => updateProp(setting.key, val)}
|
||||||
props={{
|
props={{
|
||||||
options: setting.options,
|
options: setting.options || [],
|
||||||
placeholder: setting.placeholder,
|
placeholder: setting.placeholder || null,
|
||||||
}}
|
}}
|
||||||
{bindings}
|
{bindings}
|
||||||
{componentDefinition}
|
{componentDefinition}
|
||||||
|
|
Loading…
Reference in New Issue