Skip to content

Commit

Permalink
fix: minor fixes in side panel layout
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Sep 28, 2024
1 parent 7962d3a commit 01cbdb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/SectionFields.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ import { computed } from 'vue'
const props = defineProps({
fields: {
type: Object,
required: true,
},
isLastSection: {
type: Boolean,
Expand All @@ -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,
})
})
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Settings/SidePanelModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 }"
>
<Section :is-opened="section.opened" :label="section.label">
<SectionFields
:fields="section.fields"
:isLastSection="i == section.data.length - 1"
:isLastSection="i == section.data?.length - 1"
v-model="data"
/>
</Section>
Expand Down

0 comments on commit 01cbdb9

Please sign in to comment.