mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
459c81b1c2
commit
6a0dc61601
@ -2,7 +2,7 @@ import { action, computed, observable } from "mobx";
|
|||||||
import { CatalogEntity } from "./catalog-entity";
|
import { CatalogEntity } from "./catalog-entity";
|
||||||
|
|
||||||
export class CatalogEntityRegistry {
|
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[]) {
|
@action addSource(id: string, source: CatalogEntity[]) {
|
||||||
this.sources.set(id, source);
|
this.sources.set(id, source);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user