diff --git a/js/lib/utils/patchMithril.js b/js/lib/utils/patchMithril.js index 672b2e39e..8935b2e79 100644 --- a/js/lib/utils/patchMithril.js +++ b/js/lib/utils/patchMithril.js @@ -5,7 +5,7 @@ export default function patchMithril(global) { const m = function(comp, ...args) { if (comp.prototype && comp.prototype instanceof Component) { - return comp.component(...args); + return comp.component(args[0], args.slice(1)); } const node = mo.apply(this, arguments);