Arthur Bogaart pushed to branch feature/webpack at cms-community / hippo-addon-channel-manager
Commits: 60d76382 by Arthur Bogaart at 2016-09-13T10:18:37+02:00 CHANNELMGR-863 Fix eslint error - - - - - 1 changed file: - frontend-ng/src/angularjs/api/hst.service.js Changes: ===================================== frontend-ng/src/angularjs/api/hst.service.js ===================================== --- a/frontend-ng/src/angularjs/api/hst.service.js +++ b/frontend-ng/src/angularjs/api/hst.service.js @@ -31,7 +31,12 @@ export class HstService { initializeSession(hostname, mountId) { return this.doGet(this.config.rootUuid, 'composermode', hostname, mountId) - .then((response) => response ? response.data : null); + .then(response => { + if (response) { + return response.data; + } + return null; + }); } getChannel(id) { View it on GitLab: https://code.onehippo.org/cms-community/hippo-addon-channel-manager/commit/60d76382f9d892399d2b1a2a50240ff3897ff039
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn