fix item.content undefined

This commit is contained in:
Kevin Jahns 2020-08-07 19:29:08 +02:00
parent 29c2ad4492
commit 94646b2f45

View File

@ -782,8 +782,7 @@ export class YText extends AbstractType {
continue
}
iterateStructs(transaction, /** @type {Array<Item|GC>} */ (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
}
})