mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-18 18:02:24 -05:00
getAll if array is empty or non existant (#3120)
This commit is contained in:
@@ -44,7 +44,7 @@ export const useUnitStore = function () {
|
||||
},
|
||||
};
|
||||
|
||||
if (!unitStore.value) {
|
||||
if (!unitStore.value || unitStore.value.length === 0) {
|
||||
unitStore = actions.getAll();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user