Merge branch 'mealie-next' into feat-frontend-access-controll

This commit is contained in:
Kuchenpirat
2024-02-05 15:37:27 +01:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ export const usePublicFoodStore = function (groupSlug: string) {
}, },
}; };
if (!foodStore.value) { if (!foodStore.value || foodStore.value.length === 0) {
foodStore = actions.getAll(); foodStore = actions.getAll();
} }
@@ -61,7 +61,7 @@ export const useFoodStore = function () {
}, },
}; };
if (!foodStore) { if (!foodStore.value || foodStore.value.length === 0) {
foodStore = actions.getAll(); foodStore = actions.getAll();
} }

View File

@@ -37,7 +37,7 @@ export function useLabelStore() {
}, },
}; };
if (!labelStore.value) { if (!labelStore.value || labelStore.value?.length === 0) {
labelStore = actions.getAll(); labelStore = actions.getAll();
} }

View File

@@ -44,7 +44,7 @@ export const useUnitStore = function () {
}, },
}; };
if (!unitStore.value) { if (!unitStore.value || unitStore.value.length === 0) {
unitStore = actions.getAll(); unitStore = actions.getAll();
} }