summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/lib
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/renderer/lib')
-rw-r--r--gui/src/renderer/lib/history.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/src/renderer/lib/history.tsx b/gui/src/renderer/lib/history.tsx
index e74552f786..b81aef50fe 100644
--- a/gui/src/renderer/lib/history.tsx
+++ b/gui/src/renderer/lib/history.tsx
@@ -194,7 +194,7 @@ export default class History {
pathname: location.pathname ?? this.location.pathname,
search: location.search ?? '',
hash: location.hash ?? '',
- state: location.state ?? { scrollPosition: [0, 0], expandedSections: [] },
+ state: location.state ?? { scrollPosition: [0, 0], expandedSections: {} },
key: location.key ?? this.getRandomKey(),
};
}
@@ -205,7 +205,7 @@ export default class History {
pathname: path,
search: '',
hash: '',
- state: state ?? { scrollPosition: [0, 0], expandedSections: [] },
+ state: state ?? { scrollPosition: [0, 0], expandedSections: {} },
key: this.getRandomKey(),
};
}