diff --git a/packages/editor/src/lib/editor/Editor.ts b/packages/editor/src/lib/editor/Editor.ts index a0093db28..68272bf55 100644 --- a/packages/editor/src/lib/editor/Editor.ts +++ b/packages/editor/src/lib/editor/Editor.ts @@ -1182,7 +1182,7 @@ export class Editor extends EventEmitter { partial: Partial>, historyOptions?: TLCommandHistoryOptions ): this { - if (partial.isReadonly === false && this.getInstanceState().isReadonly === true) { + if (partial.isReadonly === false && this.getInstanceState().isReadonly) { const { isReadonly: _isReadonly, ...rest } = partial this._updateInstanceState(rest, { ephemeral: true, squashing: true, ...historyOptions }) } else {