mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -07:00
fix isOffline
This commit is contained in:
parent
a84eb0913f
commit
7338ad6bdb
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ export function useShoppingListItemActions(shoppingListId: string) {
|
|||
|
||||
async function getList() {
|
||||
const response = await api.shopping.lists.getOne(shoppingListId);
|
||||
if (window.$nuxt.isOffline && response.data) {
|
||||
if (!isOnline.value && response.data) {
|
||||
const createAndUpdateQueues = mergeListItemsByLatest(queue.update, queue.create);
|
||||
response.data.listItems = mergeListItemsByLatest(response.data.listItems ?? [], createAndUpdateQueues);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue