diff --git a/core/server/data/migrations/versions/1.25/1-update-koenig-beta-html.js b/core/server/data/migrations/versions/1.25/1-update-koenig-beta-html.js index 91afb15030..2b70fdf4a0 100644 --- a/core/server/data/migrations/versions/1.25/1-update-koenig-beta-html.js +++ b/core/server/data/migrations/versions/1.25/1-update-koenig-beta-html.js @@ -41,7 +41,7 @@ module.exports.up = function regenerateKoenigBetaHTML(options) { let mobiledoc = JSON.parse(post.get('mobiledoc') || null); if ( - post.get('html').match(/^
/) + post.get('html') && post.get('html').match(/^
/) || (mobiledoc && !mobiledocIsCompatibleWithV1(mobiledoc)) ) { // change imagecard.payload.imageStyle to imagecard.payload.cardWidth