From 1b4360b897fca746492e0a4f701de9b6b851510f Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Mon, 11 Jul 2022 16:26:03 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B2=20convertRecent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/share/bookManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/components/Reader/share/bookManager.js b/client/components/Reader/share/bookManager.js index e7a9ebdb..a49fc1f0 100644 --- a/client/components/Reader/share/bookManager.js +++ b/client/components/Reader/share/bookManager.js @@ -81,13 +81,14 @@ class BookManager { for (const key in this.recent) { const book = this.recent[key]; + if (!book.path) { continue; } const newKey = this.keyFromPath(book.path); - if (!book.deleted && key !== newKey) { + if (!book.deleted && key !== newKey || book.key !== newKey) { this.recent[newKey] = _.cloneDeep(book); this.recent[newKey].key = newKey; book.deleted = 1;