From 167134beb648fd05cc9abbdeeb4683292dccbb41 Mon Sep 17 00:00:00 2001 From: maxxkim Date: Wed, 14 Aug 2024 14:37:23 +0300 Subject: [PATCH] fix(recipe): Fix --- lib/features/recipes/presentation/bloc/recipe_create_cubit.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/features/recipes/presentation/bloc/recipe_create_cubit.dart b/lib/features/recipes/presentation/bloc/recipe_create_cubit.dart index 5ff4f3ec..0790f2a4 100644 --- a/lib/features/recipes/presentation/bloc/recipe_create_cubit.dart +++ b/lib/features/recipes/presentation/bloc/recipe_create_cubit.dart @@ -152,7 +152,7 @@ class RecipeCreateCubit extends Cubit { try { if (state is RecipeCreateStateLoaded) { var currentState = state as RecipeCreateStateLoaded; - List newStepImages = currentState.stepImages; + List newStepImages = List.from(currentState.stepImages); newStepImages.removeLast(); List newStepControllers = List.from(currentState.stepControllers);