Skip to content

Commit 2749825

Browse files
committed
Fix updated assets cannot be removed
1 parent 835467e commit 2749825

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/lw_file_system_api/lib/src/data.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,7 @@ abstract class ArchiveData<T> {
105105
state.copyWith(
106106
added: Map.from(state.added)
107107
..removeWhere((key, value) => names.contains(key)),
108-
removed: {
109-
...state.removed,
110-
...names.where((name) => !state.added.containsKey(name)),
111-
},
108+
removed: {...state.removed, ...names},
112109
),
113110
);
114111

0 commit comments

Comments
 (0)