Skip to content

Commit

Permalink
Fixes #33: Allows to skip empty htl mock entry
Browse files Browse the repository at this point in the history
  • Loading branch information
beatgeb committed Jun 19, 2019
1 parent a79775b commit 62ccf93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srv/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = function (pathToComponents, pathToPages, pathToAemMocks, backen
cmsTemplate = await service.getHtlTemplate(path, view)
if (cmsTemplate) {
const engine = require('./htl/engine')
raw = await engine(vm.htl, cmsTemplate, {useDir: pathToAemMocks, useOptions: {model: viewModel}})
raw = await engine(vm.htl || {}, cmsTemplate, {useDir: pathToAemMocks, useOptions: {model: viewModel}})
if (raw) {
raw = raw.body
}
Expand Down

0 comments on commit 62ccf93

Please sign in to comment.