mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Check for location before navigate
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
af71834676
commit
700fc5745b
@ -18,6 +18,7 @@ if (ipcRenderer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function navigate(location: LocationDescriptor) {
|
export function navigate(location: LocationDescriptor) {
|
||||||
|
if (history.location.pathname === location) return;
|
||||||
navigation.push(location);
|
navigation.push(location);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user