We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 009a01d commit 79e7da9Copy full SHA for 79e7da9
lib/api/state/actions/item_actions.dart
@@ -86,7 +86,7 @@ class ItemRemoveAction extends ReduxAction<AppState> {
86
Future<AppState?> reduce() async {
87
final ItemModel removedEntry = await ApiService().itemApi.remove(model);
88
final List<ItemModel> items = List.of(state.items.items, growable: true)
89
- ..remove(removedEntry);
+ ..removeWhere((element) => element.id == removedEntry.id);
90
return _updateItemInState(state, items, null);
91
}
92
0 commit comments