From d12625a3a3e241d80ce3fe8e577ba8a41320b189 Mon Sep 17 00:00:00 2001
From: Tyler Schicke <tyler_schicke@brown.edu>
Date: Fri, 1 Feb 2019 01:05:31 -0500
Subject: Changed formatting setting, added very basic generic FieldView, and
 added Schema view

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

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

diff --git a/src/views/collections/CollectionFreeFormView.tsx b/src/views/collections/CollectionFreeFormView.tsx
index 736bcb786..b4dd140d0 100644
--- a/src/views/collections/CollectionFreeFormView.tsx
+++ b/src/views/collections/CollectionFreeFormView.tsx
@@ -174,10 +174,10 @@ export class CollectionFreeFormView extends React.Component<CollectionViewProps>
     render() {
         const { fieldKey, Document: Document } = this.props;
 
-        const value: Document[] = Document.GetFieldValue(fieldKey, ListField, []);
-        const panx: number = Document.GetFieldValue(KeyStore.PanX, NumberField, Number(0));
-        const pany: number = Document.GetFieldValue(KeyStore.PanY, NumberField, Number(0));
-        const currScale: number = Document.GetFieldValue(KeyStore.Scale, NumberField, Number(1));
+        const value: Document[] = Document.GetListField<Document>(fieldKey, []);
+        const panx: number = Document.GetNumberField(KeyStore.PanX, 0);
+        const pany: number = Document.GetNumberField(KeyStore.PanY, 0);
+        const currScale: number = Document.GetNumberField(KeyStore.Scale, 1);
         return (
             <div className="border" style={{
                 borderStyle: "solid",
-- 
cgit v1.2.3-70-g09d2

