diff options
| author | bobzel <zzzman@gmail.com> | 2023-06-23 13:14:18 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-06-23 13:14:18 -0400 |
| commit | 1429ab79eac9aa316082f52c14c576f6b3a97111 (patch) | |
| tree | 93516bace1461a0aca45cfb5eae3bd5f9c9d7249 /src/client/util | |
| parent | 51d57ce0a1f618737a51370c09e5fb3f4139f1f9 (diff) | |
cleaned up more issues with pointer events/contents active. fixed dragging from piles.
Diffstat (limited to 'src/client/util')
| -rw-r--r-- | src/client/util/UndoManager.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/UndoManager.ts b/src/client/util/UndoManager.ts index 2379cb2ab..b59af6656 100644 --- a/src/client/util/UndoManager.ts +++ b/src/client/util/UndoManager.ts @@ -1,4 +1,5 @@ import { observable, action, runInAction } from 'mobx'; +import { Field } from '../../fields/Doc'; import { Without } from '../../Utils'; function getBatchName(target: any, key: string | symbol): string { @@ -95,7 +96,7 @@ export namespace UndoManager { export function AddEvent(event: UndoEvent, value?: any): void { if (currentBatch && batchCounter.get() && !undoing) { - console.log(' '.slice(0, batchCounter.get()) + 'UndoEvent : ' + event.prop + ' = ' + value); + console.log(' '.slice(0, batchCounter.get()) + 'UndoEvent : ' + event.prop + ' = ' + (value instanceof Array ? value.map(val => Field.toScriptString(val)).join(',') : Field.toScriptString(value))); currentBatch.push(event); tempEvents?.push(event); } |
