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 { export class CategoriesComponent {
@Input() @Input()
categories!: Set<string> categories: readonly string[] = []
@Input() @Input()
category!: string category = ''
@Input() @Input()
updatesAvailable!: number updatesAvailable = 0
@Output() @Output()
readonly categoryChange = new EventEmitter<string>() readonly categoryChange = new EventEmitter<string>()

View File

@@ -23,7 +23,7 @@ export class MarketplaceListPage {
info.categories.forEach(c => categories.add(c)) info.categories.forEach(c => categories.add(c))
categories.add('all') categories.add('all')
return { categories, packages } return { categories: Array.from(categories), packages }
}), }),
) )