fix(marketplace): loosen type in categories component (#1918)

This commit is contained in:
Alex Inkin
2022-11-09 16:59:31 +03:00
committed by Aiden McClelland
parent 0fc546962e
commit affab384cf
2 changed files with 4 additions and 4 deletions

View File

@@ -17,13 +17,13 @@ import {
})
export class CategoriesComponent {
@Input()
categories!: Set<string>
categories: readonly string[] = []
@Input()
category!: string
category = ''
@Input()
updatesAvailable!: number
updatesAvailable = 0
@Output()
readonly categoryChange = new EventEmitter<string>()

View File

@@ -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 }
}),
)