diff --git a/frontend/src/components/SectionFields.vue b/frontend/src/components/SectionFields.vue index f2029aa2..dfaff47f 100644 --- a/frontend/src/components/SectionFields.vue +++ b/frontend/src/components/SectionFields.vue @@ -125,7 +125,6 @@ import { computed } from 'vue' const props = defineProps({ fields: { type: Object, - required: true, }, isLastSection: { type: Boolean, @@ -146,7 +145,7 @@ const _fields = computed(() => { if (df?.depends_on) evaluate_depends_on(df.depends_on, field) all_fields.push({ ...field, - filters: df.link_filters && JSON.parse(df.link_filters), + filters: df?.link_filters && JSON.parse(df.link_filters), placeholder: field.placeholder || field.label, }) }) diff --git a/frontend/src/components/Settings/SidePanelModal.vue b/frontend/src/components/Settings/SidePanelModal.vue index 0e3665ad..a35c7408 100644 --- a/frontend/src/components/Settings/SidePanelModal.vue +++ b/frontend/src/components/Settings/SidePanelModal.vue @@ -40,12 +40,12 @@ v-for="(section, i) in sections.data" :key="section.label" class="flex flex-col py-1.5 px-1" - :class="{ 'border-b': i !== sections.data.length - 1 }" + :class="{ 'border-b': i !== sections.data?.length - 1 }" >