Ensure links are an array in the wrapper component for a cleaner fix
This commit is contained in:
parent
e695396bb8
commit
39d5c81b72
|
@ -17,7 +17,6 @@
|
|||
const flipDurationMs = 150
|
||||
let dragDisabled = true
|
||||
|
||||
$: links = links || []
|
||||
$: links.forEach(link => {
|
||||
if (!link.id) {
|
||||
link.id = generate()
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
export let value = []
|
||||
let drawer
|
||||
let links = cloneDeep(value)
|
||||
let links = cloneDeep(value || [])
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
const save = () => {
|
||||
|
|
Loading…
Reference in New Issue