Skip to content

Commit 2420c3d

Browse files
committed
Fix auth.bulkLoad
1 parent 0622b07 commit 2420c3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ export async function bulkLoad(fields = [], usr = null, pwd = null, isAdmin = fa
773773
continue;
774774
}
775775
deletedData = fetchedBulkLoad.syncDeleted?.[table] || [];
776-
existingData = (storage.get(isAdmin ? "adminCache" : "cache")[table] || []).filter(item => {
776+
existingData = (storage.get(isAdmin ? "adminCache" : "cache")?.[table] || []).filter(item => {
777777
return !deletedData.includes(String(item.id || item.seatCode || item.period || item.key || item.username || 0));
778778
});
779779
mergedData = [...existingData];

0 commit comments

Comments
 (0)