mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
fixed meal plan not loading
This commit is contained in:
@@ -47,7 +47,7 @@ export const useMealPlanStore = defineStore(_STORE_ID, {
|
||||
},
|
||||
actions: {
|
||||
refreshFromAPI(from_date, to_date) {
|
||||
if (this.currently_updating != null && (this.currently_updating[0] !== from_date || this.currently_updating[1] !== to_date)) {
|
||||
if (this.currently_updating == null || (this.currently_updating[0] !== from_date || this.currently_updating[1] !== to_date)) {
|
||||
this.currently_updating = [from_date, to_date] // certainly no perfect check but better than nothing
|
||||
|
||||
let apiClient = new ApiApiFactory()
|
||||
|
||||
Reference in New Issue
Block a user