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
|
const flipDurationMs = 150
|
||||||
let dragDisabled = true
|
let dragDisabled = true
|
||||||
|
|
||||||
$: links = links || []
|
|
||||||
$: links.forEach(link => {
|
$: links.forEach(link => {
|
||||||
if (!link.id) {
|
if (!link.id) {
|
||||||
link.id = generate()
|
link.id = generate()
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
export let value = []
|
export let value = []
|
||||||
let drawer
|
let drawer
|
||||||
let links = cloneDeep(value)
|
let links = cloneDeep(value || [])
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
const save = () => {
|
const save = () => {
|
||||||
|
|
Loading…
Reference in New Issue