🐛 Fixed broken editor state when deleting a selection containing cards
closes https://github.com/TryGhost/Ghost/issues/9852 - Ember was throwing an error because we weren't using `.set` to set properties on the editor component which halted execution whilst the component cards were being re-rendered
This commit is contained in:
parent
8f4246e3b6
commit
4ba9c6e582
|
@ -1257,9 +1257,11 @@ export default Component.extend({
|
|||
if (wordCount !== this.wordCount || imageCount !== this.imageCount) {
|
||||
let readingTime = calculateReadingTime({wordCount, imageCount});
|
||||
|
||||
this.wordCount = wordCount;
|
||||
this.imageCount = imageCount;
|
||||
this.readingTime = readingTime;
|
||||
this.setProperties({
|
||||
wordCount,
|
||||
imageCount,
|
||||
readingTime
|
||||
});
|
||||
|
||||
this.wordCountDidChange({wordCount, imageCount, readingTime});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue