[ui] fix nav bug

feat/vaults
Tomáš Mládek 2021-11-30 23:28:50 +01:00
parent 4bc89b815c
commit 9d5c9156ca
1 changed files with 4 additions and 3 deletions

View File

@ -12,9 +12,10 @@
const location = useLocation();
let routerTo = "#";
if ($location.pathname.startsWith("/browse") && to.entity) {
routerTo = `${$location.pathname},${to.entity}`;
$: {
if ($location.pathname.startsWith("/browse") && to.entity) {
routerTo = `${$location.pathname},${to.entity}`;
}
}
</script>