Fix button action drawer not saving and crashing
This commit is contained in:
parent
c4ac573ca3
commit
001520adad
|
@ -13,13 +13,12 @@
|
|||
|
||||
const EVENT_TYPE_KEY = "##eventHandlerType"
|
||||
|
||||
export let event
|
||||
export let actions
|
||||
|
||||
let addActionButton
|
||||
let addActionDropdown
|
||||
let selectedAction
|
||||
|
||||
$: actions = event || []
|
||||
$: selectedActionComponent =
|
||||
selectedAction &&
|
||||
actionTypes.find(t => t.name === selectedAction[EVENT_TYPE_KEY]).component
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
export let value
|
||||
export let value []
|
||||
export let name
|
||||
|
||||
let drawer
|
||||
|
@ -63,6 +63,6 @@
|
|||
<Button thin blue on:click={saveEventData}>Save</Button>
|
||||
</heading>
|
||||
<div slot="body">
|
||||
<EventEditor event={value} eventType={name} />
|
||||
<EventEditor bind:actions={value} eventType={name} />
|
||||
</div>
|
||||
</Drawer>
|
||||
|
|
Loading…
Reference in New Issue