Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 4b68eae

Browse files
committed
fixes broadcasted changes from deep flattening empty array attributes
1 parent 424a792 commit 4b68eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reactive_record/broadcast.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def merge_current_values(br)
215215
return nil
216216
end
217217
[attr, value]
218-
end.compact.flatten]
218+
end.compact.flatten(1)]
219219
# TODO: verify - it used to be current_values.merge(br.attributes)
220220
klass._react_param_conversion(br.attributes.merge(current_values))
221221
end

0 commit comments

Comments
 (0)