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

Fix issue when passing single Native Object as param to a component #195

Merged
merged 1 commit into from
Jan 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/react/rendering_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ def replace(e1, e2)

def remove_nodes_from_args(args)
args[0].each do |key, value|
value.as_node if value.is_a?(Element) rescue nil
begin
value.as_node if value.is_a?(Element)
rescue Exception
end
end if args[0] && args[0].is_a?(Hash)
end

Expand Down