Commit ae381d1a authored by Michael Lange's avatar Michael Lange
Browse files

Defensive arguments for glimmer-factory

Showing with 1 addition and 1 deletion
+1 -1
......@@ -24,7 +24,7 @@ export default function setupGlimmerComponentFactory(hooks, componentKey) {
// Look up the component class in the glimmer component manager and return a
// function to construct components as if they were functions.
function glimmerComponentInstantiator(owner, componentKey) {
return args => {
return (args = {}) => {
const componentManager = owner.lookup('component-manager:glimmer');
const componentClass = owner.factoryFor(`component:${componentKey}`).class;
return componentManager.createComponent(componentClass, { named: args });
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment