From 688c8796f4d863c86d4016751e03c475870bc86b Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Wed, 27 Jul 2022 19:00:25 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/ServerStorage/ServerStorage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/Reader/ServerStorage/ServerStorage.vue b/client/components/Reader/ServerStorage/ServerStorage.vue index f9084eea..c7a2b99d 100644 --- a/client/components/Reader/ServerStorage/ServerStorage.vue +++ b/client/components/Reader/ServerStorage/ServerStorage.vue @@ -565,7 +565,7 @@ class ServerStorage { //newRecentMod let newRecentMod = {}; let oneItemKey = null; - if (itemKeys.length == 1) + if (itemKeys && itemKeys.length == 1) oneItemKey = itemKeys[0]; if (oneItemKey && this.cachedRecentPatch.data[oneItemKey] && this.prevItemKey == oneItemKey) { @@ -583,7 +583,7 @@ class ServerStorage { if (itemKeys && !needSaveRecentMod) { newRecentPatch = _.cloneDeep(this.cachedRecentPatch); newRecentPatch.rev++; - + for (const key of itemKeys) { newRecentPatch.data[key] = _.cloneDeep(bm.recent[key]); }