Fix crash in KeyValueBuilder when object doesn't exist
This commit is contained in:
parent
aa56269ccb
commit
12daa2e22a
|
@ -31,7 +31,10 @@
|
|||
export let menuItems
|
||||
export let showMenu = false
|
||||
|
||||
let fields = Object.entries(object).map(([name, value]) => ({ name, value }))
|
||||
let fields = Object.entries(object || {}).map(([name, value]) => ({
|
||||
name,
|
||||
value,
|
||||
}))
|
||||
let fieldActivity = buildFieldActivity(activity)
|
||||
|
||||
$: object = fields.reduce(
|
||||
|
|
Loading…
Reference in New Issue