mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Koenig - Fixed HTML card init error
no issue - `payload.set` is not always a method because mobiledoc-kit can give us POJOs
This commit is contained in:
parent
70ee42a51a
commit
5adbb9b665
1 changed files with 2 additions and 1 deletions
|
@ -39,8 +39,9 @@ export default Component.extend({
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
let payload = this.payload || {};
|
let payload = this.payload || {};
|
||||||
|
|
||||||
|
// CodeMirror errors on a `null` or `undefined` value
|
||||||
if (!payload.html) {
|
if (!payload.html) {
|
||||||
payload.set('html', '');
|
set(payload, 'html', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.set('payload', payload);
|
this.set('payload', payload);
|
||||||
|
|
Loading…
Add table
Reference in a new issue