From affab384cf06aef06718fcd66e09e211c9c66d78 Mon Sep 17 00:00:00 2001 From: Alex Inkin Date: Wed, 9 Nov 2022 16:59:31 +0300 Subject: [PATCH] fix(marketplace): loosen type in categories component (#1918) --- .../src/pages/list/categories/categories.component.ts | 6 +++--- .../marketplace-list/marketplace-list.page.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/projects/marketplace/src/pages/list/categories/categories.component.ts b/frontend/projects/marketplace/src/pages/list/categories/categories.component.ts index d6ce907a2..17e27bf4d 100644 --- a/frontend/projects/marketplace/src/pages/list/categories/categories.component.ts +++ b/frontend/projects/marketplace/src/pages/list/categories/categories.component.ts @@ -17,13 +17,13 @@ import { }) export class CategoriesComponent { @Input() - categories!: Set + categories: readonly string[] = [] @Input() - category!: string + category = '' @Input() - updatesAvailable!: number + updatesAvailable = 0 @Output() readonly categoryChange = new EventEmitter() diff --git a/frontend/projects/ui/src/app/pages/marketplace-routes/marketplace-list/marketplace-list.page.ts b/frontend/projects/ui/src/app/pages/marketplace-routes/marketplace-list/marketplace-list.page.ts index 271ee3e70..dcdb4813a 100644 --- a/frontend/projects/ui/src/app/pages/marketplace-routes/marketplace-list/marketplace-list.page.ts +++ b/frontend/projects/ui/src/app/pages/marketplace-routes/marketplace-list/marketplace-list.page.ts @@ -23,7 +23,7 @@ export class MarketplaceListPage { info.categories.forEach(c => categories.add(c)) categories.add('all') - return { categories, packages } + return { categories: Array.from(categories), packages } }), )