Skip to content

Commit

Permalink
remove header from resource context menu (#1337)
Browse files Browse the repository at this point in the history
* remove header from context menu

* fix code smell
  • Loading branch information
Onokaev authored Jan 17, 2022
1 parent cdb7463 commit 27581fb
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/app/views/sidebar/resource-explorer/ResourceLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { IResourceLink, ResourceOptions } from '../../../../types/resources';
import { setSampleQuery } from '../../../services/actions/query-input-action-creators';
import { GRAPH_URL } from '../../../services/graph-constants';
import { translateMessage } from '../../../utils/translate-messages';
import { getAvailableMethods, getUrlFromLink, removeCounter } from './resource-explorer.utils';
import { getAvailableMethods, getUrlFromLink } from './resource-explorer.utils';

interface IResourceLinkProps {
link: any;
Expand Down Expand Up @@ -141,14 +141,6 @@ const ResourceLink = (props: IResourceLinkProps) => {
}
});
}

if (menuItems.length > 0) {
menuItems.unshift({
key: 'actions',
itemType: ContextualMenuItemType.Header,
text: removeCounter(resourceLink.name)
});
}
return menuItems;
}
}
Expand Down

0 comments on commit 27581fb

Please sign in to comment.