lib/preact.rb in isomorfeus-preact-10.6.17 vs lib/preact.rb in isomorfeus-preact-10.6.18
- old
+ new
@@ -167,9 +167,11 @@
let component_name;
if (active_component.__ruby_instance) { component_name = active_component.__ruby_instance.$to_s(); }
else { component_name = active_component.$to_s(); }
#{Isomorfeus.raise_error(message: "Is #{`value`} a valid method of #{`component_name`}? If so then please use: #{`key`}: method_ref(:#{`value`}) within component: #{`component_name`}")}
}
+ } else if (type === "object" && value === nil) {
+ result[self.lower_camelize(key)] = null;
} else {
let active_component = self.active_component();
let component_name;
if (active_component.__ruby_instance) { component_name = active_component.__ruby_instance.$to_s(); }
else { component_name = active_component.$to_s(); }