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

Commit cab620d

Browse files
committedDec 4, 2016
Fix issue when passing single Native Object as param to a component
·
v0.12.7v0.12.0
1 parent 593e653 commit cab620d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎lib/react/rendering_context.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ def replace(e1, e2)
6565

6666
def remove_nodes_from_args(args)
6767
args[0].each do |key, value|
68-
value.as_node if value.is_a?(Element) rescue nil
68+
begin
69+
value.as_node if value.is_a?(Element)
70+
rescue Exception
71+
end
6972
end if args[0] && args[0].is_a?(Hash)
7073
end
7174

0 commit comments

Comments
 (0)
This repository has been archived.