lib/node_mutation.rb in node_mutation-1.21.5 vs lib/node_mutation.rb in node_mutation-1.21.6

- old
+ new

@@ -275,10 +275,11 @@ conflict_actions = get_conflict_actions(sorted_actions) if conflict_actions.size > 0 && strategy?(Strategy::THROW_ERROR) raise ConflictActionError, "mutation actions are conflicted" end - new_source = rewrite_source(source, sort_actions(get_filter_actions(conflict_actions))) + actions = sort_flatten_actions(flat_actions(get_filter_actions(conflict_actions))) + new_source = rewrite_source(source, actions) result = NodeMutation::Result.new(affected: true, conflicted: !conflict_actions.empty?) result.new_source = new_source result end