From c18d8daece45a876e4581fcb9d9452471d0adf1b Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 13 Sep 2023 16:08:56 +0200 Subject: [PATCH] fixed meal plan simple grid on search view after merge --- vue/src/apps/RecipeSearchView/RecipeSearchView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue/src/apps/RecipeSearchView/RecipeSearchView.vue b/vue/src/apps/RecipeSearchView/RecipeSearchView.vue index bfc731c57..667f3ffe6 100644 --- a/vue/src/apps/RecipeSearchView/RecipeSearchView.vue +++ b/vue/src/apps/RecipeSearchView/RecipeSearchView.vue @@ -984,7 +984,7 @@ export default { date: moment_date, create_default_date: moment_date.format("YYYY-MM-DD"), // improve meal plan edit modal to do formatting itself and accept dates date_label: moment_date.format("ddd") + " " + date_label[0] + "." + date_label[1], - plan_entries: this.meal_plan_store.plan_list.filter((m) => moment(m.date).isSame(moment_date, "day")), + plan_entries: this.meal_plan_store.plan_list.filter((m) => moment_date.isBetween(moment(m.from_date), moment(m.to_date), 'day', '[]')) }) } }