diff --git a/frontend/src/lib/components/apps/components/inputs/AppSelectTab.svelte b/frontend/src/lib/components/apps/components/inputs/AppSelectTab.svelte index 0d022327f0..a9efd73ab7 100644 --- a/frontend/src/lib/components/apps/components/inputs/AppSelectTab.svelte +++ b/frontend/src/lib/components/apps/components/inputs/AppSelectTab.svelte @@ -52,7 +52,7 @@ function setDefaultValue() { if (resolvedConfig.defaultValue === undefined) { - selected = resolvedConfig.items[0].value + selected = resolvedConfig.items?.[0]?.value } else if (resolvedConfig.defaultValue) { selected = resolvedConfig.defaultValue } diff --git a/frontend/src/lib/components/common/table/AppRow.svelte b/frontend/src/lib/components/common/table/AppRow.svelte index d6d3f7c1ff..7e7beee6f2 100644 --- a/frontend/src/lib/components/common/table/AppRow.svelte +++ b/frontend/src/lib/components/common/table/AppRow.svelte @@ -142,6 +142,13 @@ }, type: 'delete', disabled: !canWrite + }, + { + displayName: 'View/Edit JSON', + icon: faFileExport, + action: () => { + loadAppJson() + } } ] }