Build [v.1.3.6]
This commit is contained in:
@@ -53,7 +53,7 @@ export const fetchAndCacheItems = async () => {
|
||||
const items = await inventoryApi.getItems();
|
||||
// Update local cache
|
||||
await db.items.clear();
|
||||
await db.items.bulkAdd(items);
|
||||
await db.items.bulkPut(items);
|
||||
return items;
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch items, using cache:', error);
|
||||
|
||||
Reference in New Issue
Block a user