diff --git a/react_ujs/index.js b/react_ujs/index.js index d3e3c9077..9f56d2b17 100644 --- a/react_ujs/index.js +++ b/react_ujs/index.js @@ -103,7 +103,7 @@ var ReactRailsUJS = { } throw new Error(message + ". Make sure your component is available to render.") } else { - let component = this.components[cacheId]; + var component = this.components[cacheId]; if(component === undefined) { component = React.createElement(constructor, props); if(turbolinksPermanent) {