diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-09-01 13:30:57 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-09-01 13:30:57 -0500 |
commit | 5f48cb5e27466a723ee0c651a5089fc0faf55a3f (patch) | |
tree | 27efc06fb97bea439b0273d22d1904ca452cce9c | |
parent | bb51af5ae9c405faafad3b9685eef545c3437adb (diff) | |
download | voidsky-5f48cb5e27466a723ee0c651a5089fc0faf55a3f.tar.zst |
Fix bug in selection of screens to cache
-rw-r--r-- | src/state/models/navigation.ts | 2 | ||||
-rw-r--r-- | todos.txt | 3 |
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 |