1
0
Fork 0
mirror of synced 2024-10-03 19:43:32 +13:00

Add optional chaining as binding context may not exist

This commit is contained in:
Andrew Kingston 2023-07-24 16:19:08 +01:00
parent 02c538c315
commit 48d15f5e08

View file

@ -339,7 +339,7 @@
</Tab>
{/if}
<div class="drawer-actions">
{#if typeof drawerActions.hide === "function" && drawerActions.headless}
{#if typeof drawerActions?.hide === "function" && drawerActions?.headless}
<Button
secondary
quiet
@ -350,7 +350,7 @@
Cancel
</Button>
{/if}
{#if typeof bindingDrawerActions?.save === "function" && drawerActions.headless}
{#if typeof bindingDrawerActions?.save === "function" && drawerActions?.headless}
<Button
cta
disabled={!valid}