Skip to content

Commit f009059

Browse files
committed
fix: types
1 parent 2620122 commit f009059

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/modules/admin/modules/collections/components/lf-collection-add.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
>
8888
<el-option
8989
v-if="collection"
90-
:label="props.collection?.category.name"
90+
:label="props.collection?.category?.name"
9191
:value="props.collection?.categoryId"
9292
class="!px-3 !hidden"
9393
/>
@@ -212,7 +212,7 @@ const isEditForm = computed(() => !!props.collection?.id);
212212
const fillForm = (record?: CollectionModel) => {
213213
if (record) {
214214
Object.assign(form, record);
215-
form.type = record.category.categoryGroupType;
215+
form.type = record.category?.categoryGroupType;
216216
form.categoryId = record.categoryId || null;
217217
}
218218

0 commit comments

Comments
 (0)