mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
459c81b1c2
commit
6a0dc61601
1 file changed
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user