1
0
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:
Alex Andreev 2020-10-02 11:37:56 +03:00
parent af71834676
commit 700fc5745b

View File

@ -18,6 +18,7 @@ if (ipcRenderer) {
}
export function navigate(location: LocationDescriptor) {
if (history.location.pathname === location) return;
navigation.push(location);
}