diff --git a/components/Avoiding.vue b/components/Avoiding.vue index 062464e0a..79e94a3b9 100644 --- a/components/Avoiding.vue +++ b/components/Avoiding.vue @@ -17,7 +17,7 @@ const { data: sourcesRaw } = useAsyncData(async () => { }); const sources = computed(() => { - if (!key) { + if (!key || !sourcesRaw.value) { return; } diff --git a/components/SourceSubmitForm.vue b/components/SourceSubmitForm.vue index a60a162ed..6e046b9d9 100644 --- a/components/SourceSubmitForm.vue +++ b/components/SourceSubmitForm.vue @@ -80,7 +80,7 @@ const edit = (source: Source): void => { defineExpose({ edit }); const pronounLibrary = await loadPronounLibrary(config); -const { data: keys } = await useFetch('/api/sources/keys', { lazy: true, default: () => [] }); +const { data: keys } = await useFetch('/api/sources/keys', { lazy: true, default: () => ({}) });