mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Clean up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
106cf685bc
commit
7ce87e5bc9
@ -35,12 +35,12 @@ export type CatalogAddButtonProps = {
|
||||
category: CatalogCategory
|
||||
};
|
||||
|
||||
type categoryId = string;
|
||||
type CategoryId = string;
|
||||
|
||||
@observer
|
||||
export class CatalogAddButton extends React.Component<CatalogAddButtonProps> {
|
||||
@observable protected isOpen = false;
|
||||
@observable menuItems = new Map<categoryId, CatalogEntityAddMenu[]>();
|
||||
@observable menuItems = new Map<CategoryId, CatalogEntityAddMenu[]>();
|
||||
|
||||
constructor(props: CatalogAddButtonProps) {
|
||||
super(props);
|
||||
@ -61,6 +61,7 @@ export class CatalogAddButton extends React.Component<CatalogAddButtonProps> {
|
||||
return catalogCategoryRegistry.filteredItems;
|
||||
}
|
||||
|
||||
@action
|
||||
updateMenuItems() {
|
||||
this.menuItems.clear();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user