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);