aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ImageBox.tsx
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-04-22 03:39:39 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-04-22 03:39:39 -0400
commit5a9e437bbd175b36a161e1d96c8ae873dfe6d105 (patch)
tree0f54896387bb601aa18ee0be511a6059400d17eb /src/client/views/nodes/ImageBox.tsx
parent393d351420b3a0d28f4cd1ea8b674fa5d04bfcde (diff)
More
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r--src/client/views/nodes/ImageBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx
index c11aee56e..cd003ba71 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -71,7 +71,7 @@ export class ImageBox extends DocComponent<FieldViewProps, ImageDocument>(ImageD
@undoBatch
drop = (e: Event, de: DragManager.DropEvent) => {
if (de.data instanceof DragManager.DocumentDragData) {
- de.data.droppedDocuments.map(action((drop: Document) => {
+ de.data.droppedDocuments.forEach(action((drop: Document) => {
let layout = drop.GetText(KeyStore.BackgroundLayout, "");
if (layout.indexOf(ImageBox.name) !== -1) {
let imgData = this.props.Document.Get(KeyStore.Data);