1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 14:49:42 +02:00

guard against no meta data before trim()

This commit is contained in:
Harvey Kandola 2017-12-21 13:10:05 +00:00
parent 40ade5c777
commit 9a804b5666

View file

@ -32,7 +32,8 @@ export default Component.extend({
init() {
this._super(...arguments);
this.set('pageBody', this.get('meta.rawBody').trim());
let body = (is.not.undefined(this.get('meta'))) ? this.get('meta.rawBody').trim() : '';
this.set('pageBody', body);
},
didInsertElement() {