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:
parent
40ade5c777
commit
9a804b5666
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue