Skip to content

Commit d549da1

Browse files
committed
fix: edit of collection
Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
1 parent 9fa8244 commit d549da1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ const form = reactive<CollectionFormModel>({
186186
type: '',
187187
categoryId: null,
188188
projects: [],
189+
starred: false,
189190
});
190191
191192
const rules = {
@@ -245,7 +246,7 @@ const onSubmit = () => {
245246
id: project.id,
246247
starred: project?.starred || false,
247248
})),
248-
starred: false,
249+
starred: !!form.starred,
249250
categoryId: form.categoryId,
250251
slug: form.name.toLowerCase().replace(/ /g, '-'),
251252
};

frontend/src/modules/admin/modules/collections/models/collection.model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ export interface CollectionFormModel {
2929
type: string | null;
3030
categoryId: string | null;
3131
projects: InsightsProjectModel[];
32+
starred: boolean;
3233
}

0 commit comments

Comments
 (0)