mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fixing itemId in SidebarNavItem (#1638)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
d3106dc90f
commit
afc4ca0ee1
@ -279,7 +279,9 @@ class SidebarNavItem extends React.Component<SidebarNavItemProps> {
|
|||||||
public context: SidebarContextValue;
|
public context: SidebarContextValue;
|
||||||
|
|
||||||
get itemId() {
|
get itemId() {
|
||||||
return this.props.url;
|
const url = new URL(this.props.url, `${window.location.protocol}//${window.location.host}`);
|
||||||
|
|
||||||
|
return url.pathname; // pathname without get params
|
||||||
}
|
}
|
||||||
|
|
||||||
@computed get isExpanded() {
|
@computed get isExpanded() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user