aboutsummaryrefslogtreecommitdiff
path: root/modern/src/components/SideNav.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-01-17 21:15:25 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2022-01-17 21:15:25 -0800
commit9e1c0b44189136ec6abf05720c698027a689fa08 (patch)
treeb8fc5bd23b471902e2d46cb4b51c0fbfe86b4539 /modern/src/components/SideNav.js
parent3a0bb02de89b559a185ec2c166aac4efa635dff9 (diff)
downloadtrackermap-web-9e1c0b44189136ec6abf05720c698027a689fa08.tar.gz
trackermap-web-9e1c0b44189136ec6abf05720c698027a689fa08.tar.bz2
trackermap-web-9e1c0b44189136ec6abf05720c698027a689fa08.zip
Fix modern app issuesv4.15
Diffstat (limited to 'modern/src/components/SideNav.js')
-rw-r--r--modern/src/components/SideNav.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/components/SideNav.js b/modern/src/components/SideNav.js
index bcf8ecd5..62c64fd2 100644
--- a/modern/src/components/SideNav.js
+++ b/modern/src/components/SideNav.js
@@ -21,7 +21,7 @@ const SideNav = ({ routes }) => {
key={route.href || route.subheader}
button
to={route.href}
- selected={location.pathname.match(route.match || route.href)}
+ selected={location.pathname.match(route.match || route.href) !== null}
>
<ListItemIcon>{route.icon}</ListItemIcon>
<ListItemText primary={route.name} />