[F] Fix navigator selection

This commit is contained in:
Hykilpikonna
2019-12-21 14:08:55 -05:00
parent bc190cbdfb
commit 27bcd6b9b6
+10 -1
View File
@@ -49,7 +49,16 @@ export default class Navigation extends Vue
onSelect(index: string, indexPath: string)
{
// Update active index
this.nav.updateIndex(index);
try
{
// Is json
this.nav.updateIndex(JSON.parse(index))
}
catch (e)
{
// Not json
this.nav.updateIndex(index);
}
}
/**