diff --git a/src/types/YText.js b/src/types/YText.js index 51eb02de..b80ce5b3 100644 --- a/src/types/YText.js +++ b/src/types/YText.js @@ -782,8 +782,7 @@ export class YText extends AbstractType { continue } iterateStructs(transaction, /** @type {Array} */ (doc.store.clients.get(client)), clock, afterClock, item => { - // @ts-ignore - if (item.content.constructor === ContentFormat) { + if (!item.deleted && /** @type {Item} */ (item).content.constructor === ContentFormat) { foundFormattingItem = true } })