1
0
Fork 0
mirror of synced 2024-09-10 22:46:09 +12:00

Navigate by id

This commit is contained in:
Adria Navarro 2023-07-19 10:15:53 +02:00
parent 701772ebd5
commit 37aed2d171

View file

@ -45,7 +45,7 @@
selected={$isActive("./view") && $views.selected?.name === viewName}
on:click={() => {
if (view.version === 2) {
$goto(`./view/v2/${encodeURIComponent(viewName)}`)
$goto(`./view/v2/${view._id}`)
} else {
$goto(`./view/${encodeURIComponent(viewName)}`)
}