about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-09-01 13:30:57 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-09-01 13:30:57 -0500
commit5f48cb5e27466a723ee0c651a5089fc0faf55a3f (patch)
tree27efc06fb97bea439b0273d22d1904ca452cce9c
parentbb51af5ae9c405faafad3b9685eef545c3437adb (diff)
downloadvoidsky-5f48cb5e27466a723ee0c651a5089fc0faf55a3f.tar.zst
Fix bug in selection of screens to cache
-rw-r--r--src/state/models/navigation.ts2
-rw-r--r--todos.txt3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/state/models/navigation.ts b/src/state/models/navigation.ts
index d5338ac05..d984a536f 100644
--- a/src/state/models/navigation.ts
+++ b/src/state/models/navigation.ts
@@ -41,7 +41,7 @@ export class NavigationTabModel {
 
   getBackList(n: number) {
     const start = Math.max(this.index - n, 0)
-    const end = Math.min(this.index, n)
+    const end = this.index
     return this.history.slice(start, end).map((item, i) => ({
       url: item.url,
       title: item.title,
diff --git a/todos.txt b/todos.txt
index 848a22343..fd68f690a 100644
--- a/todos.txt
+++ b/todos.txt
@@ -13,5 +13,4 @@ Paul's todo list
   - Followers list
   - Follows list
 - Bugs
-  - Check that sub components arent reloading too much
-  - Check that caching is choosing the right views
\ No newline at end of file
+  - Check that sub components arent reloading too much
\ No newline at end of file