Skip to content
Snippets Groups Projects
Commit b84d5b35 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: work-around apparent parser bug for class instantion in template

parent 082ef2c7
No related branches found
No related tags found
No related merge requests found
Pipeline #7403 passed
......@@ -11,11 +11,7 @@
/>
</li>
<li v-if="allowAdd">
<ALinkEditor
v-model="newLink"
:errors="new ErrorDetailArray<MappedErrorDetail>()"
@check="maybeAddLink"
/>
<ALinkEditor v-model="newLink" @check="maybeAddLink" />
</li>
</ul>
</fieldset>
......
......@@ -3,7 +3,7 @@
<FormGroup
v-slot="attrs"
class="tw-m-0 tw-w-32 tw-flex-none"
:errors="errors.forField('typeId')"
:errors="errors?.forField('typeId')"
>
<select
v-model="link.typeId"
......@@ -24,7 +24,11 @@
</optgroup>
</select>
</FormGroup>
<FormGroup v-slot="attrs" class="tw-m-0 tw-min-w-24 tw-flex-1" :errors="errors.forField('url')">
<FormGroup
v-slot="attrs"
class="tw-m-0 tw-min-w-24 tw-flex-1"
:errors="errors?.forField('url')"
>
<input
v-bind="attrs"
ref="urlEl"
......@@ -64,7 +68,7 @@ import FormGroup from '@/components/generic/FormGroup.vue'
defineOptions({ compatConfig: { MODE: 3 } })
const link = defineModel<Link>({ required: true })
const props = defineProps<{ deletable?: boolean; errors: ErrorDetailArray<MappedErrorDetail> }>()
const props = defineProps<{ deletable?: boolean; errors?: ErrorDetailArray<MappedErrorDetail> }>()
const emit = defineEmits<{ check: []; delete: [] }>()
const { t } = useI18n()
const linkTypeStore = useLinkTypeStore()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment