kopia lustrzana https://github.com/Tldraw/Tldraw
Simplify.
rodzic
4709274b2b
commit
90f1807a2c
|
@ -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 {
|
||||
|
|
Ładowanie…
Reference in New Issue