aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ImageBox.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-06-21 22:46:24 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-06-21 22:46:24 -0400
commitc9a36bc25ed8bb8144dbef6c7cc2a09447867aa8 (patch)
tree402ebc7ee62fbab0635d044ef2d48d30185237cc /src/client/views/nodes/ImageBox.tsx
parent36afe2b166321e8181840ffc32dc7fe51e627539 (diff)
fixes to allow collections to be template fields
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 241a593b0..008a09130 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -68,7 +68,7 @@ export class ImageBox extends DocComponent<FieldViewProps, ImageDocument>(ImageD
drop = (e: Event, de: DragManager.DropEvent) => {
if (de.data instanceof DragManager.DocumentDragData) {
de.data.droppedDocuments.forEach(action((drop: Doc) => {
- if (this.dataDoc !== this.props.Document && drop.data instanceof ImageField) {
+ if (/*this.dataDoc !== this.props.Document &&*/ drop.data instanceof ImageField) {
this.dataDoc[this.props.fieldKey] = new ImageField(drop.data.url);
e.stopPropagation();
} else {