diff options
author | bobzel <zzzman@gmail.com> | 2022-03-01 19:59:47 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-03-01 19:59:47 -0500 |
commit | 35f0c9940d0ea7c0cb37c711557454b77ac038ad (patch) | |
tree | 6487e8217e768705020916e85a3f236b493f3699 /src/client/util/UndoManager.ts | |
parent | 0b9e28a92487dc3a69519877d92235fca02b1b8c (diff) |
updated to webpack 5
Diffstat (limited to 'src/client/util/UndoManager.ts')
-rw-r--r-- | src/client/util/UndoManager.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/util/UndoManager.ts b/src/client/util/UndoManager.ts index 44e44d335..d1f1a0099 100644 --- a/src/client/util/UndoManager.ts +++ b/src/client/util/UndoManager.ts @@ -1,5 +1,4 @@ import { observable, action, runInAction } from "mobx"; -import 'source-map-support/register'; import { Without } from "../../Utils"; function getBatchName(target: any, key: string | symbol): string { @@ -107,7 +106,7 @@ export namespace UndoManager { } export function FilterBatches(fieldTypes: string[]) { const fieldCounts: { [key: string]: number } = {}; - const lastStack = UndoManager.undoStack.lastElement(); + const lastStack = UndoManager.undoStack.slice(-1)[0];//.lastElement(); if (lastStack) { lastStack.forEach(ev => fieldTypes.includes(ev.prop) && (fieldCounts[ev.prop] = (fieldCounts[ev.prop] || 0) + 1)); const fieldCount2: { [key: string]: number } = {}; |