diff --git a/src/main/resources/site/layouts/triple/triple.es6 b/src/main/resources/site/layouts/triple/triple.es6 index 4db6e536e..d0d8c2bc7 100644 --- a/src/main/resources/site/layouts/triple/triple.es6 +++ b/src/main/resources/site/layouts/triple/triple.es6 @@ -1,19 +1,18 @@ import { render } from '/lib/thymeleaf' const portal = __non_webpack_require__('/lib/xp/portal') - const view = resolve('triple.html') -exports.get = function (req) { +exports.get = function () { const component = portal.getComponent() const { title, hideTitle } = component.config const model = { title, hideTitle, - leftRegion: component.regions.left, - centerRegion: component.regions.center, - rightRegion: component.regions.right, + leftRegion: component.regions?.left || { components: [] }, + centerRegion: component.regions?.center || { components: [] }, + rightRegion: component.regions?.right || { components: [] }, } const body = render(view, model)