diff --git a/pub/tree/src/js/components/BodyComponent.coffee b/pub/tree/src/js/components/BodyComponent.coffee index 550fa41079..ed6fe473b7 100644 --- a/pub/tree/src/js/components/BodyComponent.coffee +++ b/pub/tree/src/js/components/BodyComponent.coffee @@ -46,7 +46,7 @@ module.exports = query { }, recl displayName: "Body" render: -> - className = (@props.meta.layout?.replace() /,/g," ") || "" + className = (@props.meta.layout?.replace /,/g," ") || "" body = [reactify @props.body] if @props.meta.logo? body.unshift (Logo color:@props.meta.logo) diff --git a/pub/tree/src/js/main.js b/pub/tree/src/js/main.js index 6e3fc876a2..f1116141b7 100644 --- a/pub/tree/src/js/main.js +++ b/pub/tree/src/js/main.js @@ -497,7 +497,7 @@ module.exports = query({ displayName: "Body", render: function() { var body, className, ref1; - className = ((ref1 = this.props.meta.layout) != null ? ref1.replace()(/,/g, " ") : void 0) || ""; + className = ((ref1 = this.props.meta.layout) != null ? ref1.replace(/,/g, " ") : void 0) || ""; body = [reactify(this.props.body)]; if (this.props.meta.logo != null) { body.unshift(Logo({