diff options
author | bob <bcz@cs.brown.edu> | 2019-05-08 10:23:28 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-05-08 10:23:28 -0400 |
commit | a573867d2443a806f174db58e2a920db3405934c (patch) | |
tree | 5461ba8d04a9cc57cdf259a2ef6cee733733f8ea /src/client/views/nodes/CollectionFreeFormDocumentView.tsx | |
parent | a8a5cf33985c47cb6e7c68f30c482232fc8d023a (diff) |
added delete from non-data keys in tree view. fixed undo iconanimating problem
Diffstat (limited to 'src/client/views/nodes/CollectionFreeFormDocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/CollectionFreeFormDocumentView.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx index 0e34cb626..5efc75793 100644 --- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx +++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx @@ -138,7 +138,9 @@ export class CollectionFreeFormDocumentView extends DocComponent<CollectionFreeF } if (minimizedDoc && maximizedDocs) { let minimizedTarget = minimizedDoc; - CollectionFreeFormDocumentView._undoBatch = UndoManager.StartBatch("iconAnimating"); + if (!CollectionFreeFormDocumentView._undoBatch) { + CollectionFreeFormDocumentView._undoBatch = UndoManager.StartBatch("iconAnimating"); + } maximizedDocs.forEach(maximizedDoc => { let iconAnimating = Cast(maximizedDoc.isIconAnimating, List); if (!iconAnimating || (Date.now() - iconAnimating[6] > 1000)) { |