From c67608a7eeeb6bdee27a8e7b4a8f6f8561db6004 Mon Sep 17 00:00:00 2001
From: Tyler Schicke <tyler_schicke@brown.edu>
Date: Mon, 21 Jan 2019 22:25:52 -0500
Subject: Small fixes and start of drag drop

---
 src/views/freeformcanvas/CollectionFreeFormView.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/views/freeformcanvas/CollectionFreeFormView.tsx')

diff --git a/src/views/freeformcanvas/CollectionFreeFormView.tsx b/src/views/freeformcanvas/CollectionFreeFormView.tsx
index 4e9e0cd21..d9a88fcd3 100644
--- a/src/views/freeformcanvas/CollectionFreeFormView.tsx
+++ b/src/views/freeformcanvas/CollectionFreeFormView.tsx
@@ -14,7 +14,7 @@ import { DocumentDecorations } from "../../DocumentDecorations";
 interface IProps {
     fieldKey: Key;
     doc: Document;
-    isSelected: boolean;
+    isSelected: () => boolean;
 }
 
 @observer
@@ -28,7 +28,7 @@ export class CollectionFreeFormView extends React.Component<IProps> {
 
     @action
     onPointerDown = (e: React.PointerEvent): void => {
-        if (!this.props.isSelected) {
+        if (!this.props.isSelected()) {
             return;
         }
 
-- 
cgit v1.2.3-70-g09d2

