Ensure links are an array in the wrapper component for a cleaner fix

This commit is contained in:
Andrew Kingston 2021-12-03 11:45:04 +00:00
parent e695396bb8
commit 39d5c81b72
2 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,6 @@
const flipDurationMs = 150
let dragDisabled = true
$: links = links || []
$: links.forEach(link => {
if (!link.id) {
link.id = generate()

View File

@ -6,7 +6,7 @@
export let value = []
let drawer
let links = cloneDeep(value)
let links = cloneDeep(value || [])
const dispatch = createEventDispatcher()
const save = () => {