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

Commit d5f85a1

Browse files
authored
Merge pull request #195 from noma4i/master
Fix issue when passing single Native Object as param to a component
2 parents a41aca3 + cab620d commit d5f85a1

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)