Skip to content

Commit 41e9b37

Browse files
committed
Bug fix
1 parent bc06a37 commit 41e9b37

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/modules/auth.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,11 @@ export async function bulkLoad(fields = [], usr = null, pwd = null, isAdmin = fa
797797
var updatedBulkLoad = {};
798798
for (const table in fetchedBulkLoad) {
799799
if (table === 'asOf' || table === 'syncDeleted') continue;
800+
const fetchedTableData = fetchedBulkLoad[table];
801+
if (!Array.isArray(fetchedTableData)) {
802+
updatedBulkLoad[table] = fetchedTableData;
803+
continue;
804+
}
800805
const currentCacheKey = (isAdmin || isTA) ? "adminCache" : "cache";
801806
const lastBulkLoadKey = (isAdmin || isTA) ? "lastAdminBulkLoad" : "lastBulkLoad";
802807
if (storage.get(lastBulkLoadKey)) {

0 commit comments

Comments
 (0)