pull/3534/head^2
Mitja Bezenšek 2024-04-22 15:45:30 +02:00
rodzic 4709274b2b
commit 90f1807a2c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1182,7 +1182,7 @@ export class Editor extends EventEmitter<TLEventMap> {
partial: Partial<Omit<TLInstance, 'currentPageId'>>,
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 {