Ensure links prop is always an array when configuring layout links
This commit is contained in:
parent
a6f684b996
commit
437dffb6d2
|
@ -17,6 +17,7 @@
|
|||
const flipDurationMs = 150
|
||||
let dragDisabled = true
|
||||
|
||||
$: links = links || []
|
||||
$: links.forEach(link => {
|
||||
if (!link.id) {
|
||||
link.id = generate()
|
||||
|
|
Loading…
Reference in New Issue