1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

merge fixes

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2021-05-20 15:50:33 +03:00
parent e97549205a
commit c91fe40ff9

View File

@ -26,12 +26,10 @@ import { iter } from "../../common/utils";
export class CatalogEntityRegistry {
protected sources = observable.map<string, IComputedValue<CatalogEntity[]>>();
constructor() {
constructor(private categoryRegistry: CatalogCategoryRegistry) {
makeObservable(this);
}
constructor(private categoryRegistry: CatalogCategoryRegistry) {}
@action addObservableSource(id: string, source: IObservableArray<CatalogEntity>) {
this.sources.set(id, computed(() => source));
}