Fix crash in KeyValueBuilder when object doesn't exist

This commit is contained in:
Andrew Kingston 2022-01-05 10:57:05 +00:00
parent aa56269ccb
commit 12daa2e22a
1 changed files with 4 additions and 1 deletions

View File

@ -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(