From 2eac309f86529e5337d9a5eed0adefeafffa1481 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 1 Sep 2022 13:30:57 -0500 Subject: [PATCH] Fix bug in selection of screens to cache --- src/state/models/navigation.ts | 2 +- 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 d5338ac052..d984a536fa 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 848a223434..fd68f690a2 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