1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-04-07 19:13:00 +03:00
parent 459c81b1c2
commit 6a0dc61601

View File

@ -2,7 +2,7 @@ import { action, computed, observable } from "mobx";
import { CatalogEntity } from "./catalog-entity";
export class CatalogEntityRegistry {
@observable.deep protected sources: Map<string, CatalogEntity[]> = observable.map(new Map(), { deep: true });
protected sources = observable.map<string, CatalogEntity[]>([], { deep: true });
@action addSource(id: string, source: CatalogEntity[]) {
this.sources.set(id, source);