Restore nav state hydration
parent
a6e2429a13
commit
700d4e99b9
|
@ -236,9 +236,6 @@ export class NavigationModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
hydrate(v: unknown) {
|
hydrate(v: unknown) {
|
||||||
// this.tabs.length = 0
|
|
||||||
// this.tabIndex = 0
|
|
||||||
return // DEBUG
|
|
||||||
if (isObj(v)) {
|
if (isObj(v)) {
|
||||||
if (hasProp(v, 'tabs') && Array.isArray(v.tabs)) {
|
if (hasProp(v, 'tabs') && Array.isArray(v.tabs)) {
|
||||||
for (const tab of v.tabs) {
|
for (const tab of v.tabs) {
|
||||||
|
|
Loading…
Reference in New Issue