diff --git a/dashboard/src/pages/Settings.svelte b/dashboard/src/pages/Settings.svelte index de5754f3..dc65549a 100644 --- a/dashboard/src/pages/Settings.svelte +++ b/dashboard/src/pages/Settings.svelte @@ -26,9 +26,9 @@ if (savedSettings) { settings = {...settings, ...savedSettings} - }; + } - let descriptions = apiConfig.description_templates; + let descriptions = apiConfig?.description_templates; async function saveDescriptionTemplates() { const res = await api().systems("@me").settings.patch({ data: { description_templates: descriptions } }); @@ -95,6 +95,7 @@ + {#if apiConfig} @@ -121,6 +122,7 @@ + {/if} @@ -131,4 +133,4 @@ textarea { resize: none; } - \ No newline at end of file +