From 6299e753ab35d278cf5982d79ec9d2ce4a395b1a Mon Sep 17 00:00:00 2001 From: Long Date: Sun, 17 Dec 2023 17:26:52 +0700 Subject: [PATCH] Fix bug can not get full information offline pack (#3279) --- src/modules/offline/offlineManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/offline/offlineManager.ts b/src/modules/offline/offlineManager.ts index 518f990a0..426f83fe5 100644 --- a/src/modules/offline/offlineManager.ts +++ b/src/modules/offline/offlineManager.ts @@ -263,7 +263,7 @@ class OfflineManager { * @return {Array} */ async getPacks(): Promise { - await this._initialize(); + await this._initialize(true); return Object.keys(this._offlinePacks).map( (name) => this._offlinePacks[name], ); @@ -279,7 +279,7 @@ class OfflineManager { * @return {OfflinePack} */ async getPack(name: string): Promise { - await this._initialize(); + await this._initialize(true); return this._offlinePacks[name]; }