ticket refinements
This commit is contained in:
@@ -47,7 +47,7 @@ class DashboardNoteListCubit extends Cubit<DashboardNoteListState> {
|
||||
Future<void> _loadNotesSilently() async {
|
||||
try {
|
||||
final notes = await _repository.getNotes();
|
||||
|
||||
if (isClosed) return;
|
||||
emit(
|
||||
state.copyWith(
|
||||
status: DashboardNoteListStatus.success,
|
||||
@@ -56,6 +56,7 @@ class DashboardNoteListCubit extends Cubit<DashboardNoteListState> {
|
||||
),
|
||||
);
|
||||
} catch (e) {
|
||||
if (isClosed) return;
|
||||
emit(
|
||||
state.copyWith(
|
||||
status: DashboardNoteListStatus.failure,
|
||||
|
||||
Reference in New Issue
Block a user