1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-25 08:09:41 +02:00

getAll if array is empty or non existant (#3120)
Some checks failed
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Docker Nightly Production / Backend Server Tests (push) Has been cancelled
Docker Nightly Production / Frontend and End-to-End Tests (push) Has been cancelled
Docker Nightly Production / Build Tagged Release (push) Has been cancelled
Docker Nightly Production / Notify Discord (push) Has been cancelled

This commit is contained in:
Kuchenpirat 2024-02-05 14:37:15 +01:00 committed by GitHub
parent 8a3173094e
commit 13e7dfe920
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

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