Skip to content

Commit b4e869f

Browse files
committed
Fix unmodifiable list issue on reactions.
1 parent 68d0632 commit b4e869f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/api/mixins.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ mixin ReactionMixin {
185185

186186
/// Sets the reactions on a node.
187187
void setReactionMixin(List<Reaction>? reactions) {
188-
this.reactions = reactions ?? [];
188+
this.reactions = [...reactions ?? []];
189189
}
190190

191191
/// Default value for all nodes that don't override this.

0 commit comments

Comments
 (0)