Skip to content

Commit

Permalink
fix: Not able to save note because of unmodifiable array
Browse files Browse the repository at this point in the history
  • Loading branch information
SankethBK committed Oct 13, 2023
1 parent 8219df6 commit 175d7ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/features/notes/presentation/bloc/notes/notes_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class NotesBloc extends Bloc<NotesEvent, NotesState> {
title: "",
createdAt: DateTime.now(),
controller: _controller,
allNoteAssets: const [],
// ignore: prefer_const_literals_to_create_immutables
allNoteAssets: [],
),
);
return;
Expand Down

0 comments on commit 175d7ef

Please sign in to comment.