feat(frontend,backend): Add id page for application forms, fix error with form creation

This commit is contained in:
2025-03-09 08:10:31 +01:00
parent 8b800432ad
commit 46a14b4e9c
4 changed files with 79 additions and 5 deletions

View File

@@ -21,7 +21,7 @@
<template #body>
<UPageList>
<UPageCard
v-for="(applicationFormElem, index) in applicationForm"
v-for="(applicationFormElem, index) in applicationForms"
:key="index"
variant="ghost"
:to="`application-forms/${applicationFormElem.id}`"
@@ -54,7 +54,7 @@ const { data } = await useAsyncData<PagedApplicationFormDto>(async () => {
return await getAllApplicationForms()
})
const applicationForm = computed({
const applicationForms = computed({
get: () => data?.value?.content ?? [],
set: (val) => {
if (val && data.value) {