1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00

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 = () => {