Skip to content

Commit

Permalink
Fix bug can not get full information offline pack (rnmapbox#3279)
Browse files Browse the repository at this point in the history
  • Loading branch information
thdailong authored Dec 17, 2023
1 parent 7414540 commit 6299e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/offline/offlineManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class OfflineManager {
* @return {Array<OfflinePack>}
*/
async getPacks(): Promise<OfflinePack[]> {
await this._initialize();
await this._initialize(true);
return Object.keys(this._offlinePacks).map(
(name) => this._offlinePacks[name],
);
Expand All @@ -279,7 +279,7 @@ class OfflineManager {
* @return {OfflinePack}
*/
async getPack(name: string): Promise<OfflinePack | undefined> {
await this._initialize();
await this._initialize(true);
return this._offlinePacks[name];
}

Expand Down

0 comments on commit 6299e75

Please sign in to comment.