From 07b1a0bb8c46b13278852968b02a2ff1f37bddea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristi=C3=A1n=20Demjanovi=C4=8D?= <122789414+Demjoo@users.noreply.github.com> Date: Mon, 11 Nov 2024 19:30:59 +0100 Subject: [PATCH] Bug: After clicking add {x} ingredients deselect items (#537) --- kitchenowl/lib/cubits/recipe_cubit.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/kitchenowl/lib/cubits/recipe_cubit.dart b/kitchenowl/lib/cubits/recipe_cubit.dart index 1baf14bc..78ea5d03 100644 --- a/kitchenowl/lib/cubits/recipe_cubit.dart +++ b/kitchenowl/lib/cubits/recipe_cubit.dart @@ -88,6 +88,7 @@ class RecipeCubit extends Cubit { .where((item) => state.selectedItems.contains(item.name)) .toList(), )); + emit(state.copyWith(selectedItems: {})); } }