From 382fd97c9c58357c91e2cad01445e22e1b4d39ee Mon Sep 17 00:00:00 2001 From: Mikolaj Kieres Date: Sat, 15 Jul 2023 12:42:38 +1000 Subject: [PATCH] fixing editting of the notes (#209) --- .../lib/pages/edit_playthrough/edit_playthrough_view_model.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board_games_companion/lib/pages/edit_playthrough/edit_playthrough_view_model.dart b/board_games_companion/lib/pages/edit_playthrough/edit_playthrough_view_model.dart index e850507d..ee8bf23f 100644 --- a/board_games_companion/lib/pages/edit_playthrough/edit_playthrough_view_model.dart +++ b/board_games_companion/lib/pages/edit_playthrough/edit_playthrough_view_model.dart @@ -198,7 +198,7 @@ abstract class _EditPlaythoughViewModel with Store { return; } - final updatedPlaythroughNotes = _playthroughDetailsWorkingCopy!.notes!; + final updatedPlaythroughNotes = _playthroughDetailsWorkingCopy!.notes!.toList(); updatedPlaythroughNotes[noteToUpdateIndex] = note; _updatePlaythroughDetailsNotes(updatedPlaythroughNotes);