Check for location before navigate

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2020-10-02 11:37:56 +03:00
1 parent af71834676
commit 700fc5745b
1 file changed
+1
+1
View File
@@ -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);
} }