aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionFreeFormView.tsx
diff options
context:
space:
mode:
authorHannah Chow <hannah_chow@brown.edu>2019-02-28 22:59:10 -0500
committerHannah Chow <hannah_chow@brown.edu>2019-02-28 22:59:10 -0500
commit75d9e15ab363c196d16a60602ac7f6b0b8bcf6a1 (patch)
tree98ac03a744c763d224eacd863748527a6b77842c /src/client/views/collections/CollectionFreeFormView.tsx
parent85970142552fb92299abbbfc1ac1b507013689be (diff)
styling fixed
Diffstat (limited to 'src/client/views/collections/CollectionFreeFormView.tsx')
-rw-r--r--src/client/views/collections/CollectionFreeFormView.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionFreeFormView.tsx b/src/client/views/collections/CollectionFreeFormView.tsx
index 63255dd90..75f019fd5 100644
--- a/src/client/views/collections/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/CollectionFreeFormView.tsx
@@ -52,6 +52,9 @@ export class CollectionFreeFormView extends CollectionViewBase {
@undoBatch
@action
drop = (e: Event, de: DragManager.DropEvent) => {
+ if (!("documentView" in de.data)) {
+ return;
+ }
super.drop(e, de);
const docView: DocumentView = de.data["documentView"];
let doc: Document = docView ? docView.props.Document : de.data["document"];