diff --git a/js/src/common/Component.ts b/js/src/common/Component.ts index 02c0041f6..605ae69fe 100644 --- a/js/src/common/Component.ts +++ b/js/src/common/Component.ts @@ -98,9 +98,9 @@ export default abstract class Component implemen * @see https://mithril.js.org/hyperscript.html#mselector,-attributes,-children */ static component(attrs = {}, children = null): Mithril.Vnode { - const componentProps = Object.assign({}, attrs); + const componentAttrs = Object.assign({}, attrs); - return m(this as any, componentProps, children); + return m(this as any, componentAttrs, children); } /**