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:
1 parent
af71834676
commit
700fc5745b
1 file changed
+1
@@ -18,6 +18,7 @@ if (ipcRenderer) {
|
||||
}
|
||||
|
||||
export function navigate(location: LocationDescriptor) {
|
||||
if (history.location.pathname === location) return;
|
||||
navigation.push(location);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user