fix: navigating away from a profile page crashed the rendering

This commit is contained in:
Spectralitree 2021-12-15 13:51:50 +01:00
parent 9f9cc6b6b2
commit b4411dd689

View File

@ -45,26 +45,22 @@
<Route path="/"><Home /></Route> <Route path="/"><Home /></Route>
<Route path="dash"><Dash /></Route> <Route path="dash"><Dash /></Route>
<Route path="settings"><Settings /></Route> <Route path="settings"><Settings /></Route>
<Route path="profile/*"> <Route path="profile"><Public /></Route>
<Route path="/"><Public /></Route> <Route path = "profile/s/:id"><Main /></Route>
<Route path = "s/:id">
<System />
</Route>
<Route path = "s"> <Route path = "s">
hey please provide a system hey please provide a system
</Route> </Route>
<Route path = "m/:id"> <Route path = "profile/m/:id">
member member
</Route> </Route>
<Route path = "m"> <Route path = "profile/m">
hey please provide a member hey please provide a member
</Route> </Route>
<Route path = "g/:id"> <Route path = "profile/g/:id">
group! group!
</Route> </Route>
<Route path = "g"> <Route path = "profile/g">
hey please provide a group hey please provide a group
</Route> </Route>
</Route>
<Footer /> <Footer />
</Router> </Router>