From 9209d6972cbd1c3e467788b2b727510910cd2f66 Mon Sep 17 00:00:00 2001 From: Thiago Carvalho <32248947+thiagocarvalhodev@users.noreply.github.com> Date: Thu, 30 May 2024 10:01:06 -0300 Subject: [PATCH] Update drives_cubit.dart --- lib/blocs/drives/drives_cubit.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/blocs/drives/drives_cubit.dart b/lib/blocs/drives/drives_cubit.dart index e2fbd4f689..386487de4c 100644 --- a/lib/blocs/drives/drives_cubit.dart +++ b/lib/blocs/drives/drives_cubit.dart @@ -132,6 +132,10 @@ class DrivesCubit extends Cubit { drivesWithAlerts: const [], canCreateNewDrive: false); + if (isClosed) { + return; + } + emit(state); }