mirror of
https://github.com/yjs/yjs.git
synced 2025-12-29 00:25:01 +01:00
fix item.content undefined
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user