mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix(marketplace): loosen type in categories component (#1918)
This commit is contained in:
committed by
Aiden McClelland
parent
0fc546962e
commit
affab384cf
@@ -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>()
|
||||||
|
|||||||
@@ -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 }
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user