From a1a9803096adde0cd932e703080948ef1d1724f7 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Mon, 29 Mar 2021 12:22:35 -0400
Subject: fixed doc decorations for dictation.  gave dictation docs a title. 
 minor cleanup.

---
 src/client/views/nodes/FieldView.tsx | 23 +----------------------
 1 file changed, 1 insertion(+), 22 deletions(-)

(limited to 'src/client/views/nodes/FieldView.tsx')

diff --git a/src/client/views/nodes/FieldView.tsx b/src/client/views/nodes/FieldView.tsx
index 465c18309..97f53aac0 100644
--- a/src/client/views/nodes/FieldView.tsx
+++ b/src/client/views/nodes/FieldView.tsx
@@ -73,28 +73,7 @@ export class FieldView extends React.Component<FieldViewProps> {
             return <p>{field.date.toLocaleString()}</p>;
         }
         else if (field instanceof Doc) {
-            return <p><b>{field.title && field.title.toString()}</b></p>;
-            //return <p><b>{field.title + " : id= " + field[Id]}</b></p>;
-            // let returnHundred = () => 100;
-            // return (
-            //     <DocumentContentsView Document={field}
-            //         addDocument={undefined}
-            //         addDocTab={this.props.addDocTab}
-            //         removeDocument={undefined}
-            //         ScreenToLocalTransform={Transform.Identity}
-            //         ContentScaling={returnOne}
-            //         PanelWidth={returnHundred}
-            //         PanelHeight={returnHundred}
-            //         renderDepth={0} //TODO Why is renderDepth reset?
-            //         focus={emptyFunction}
-            //         isSelected={this.props.isSelected}
-            //         select={returnFalse}
-            //         layoutKey={"layout"}
-            //         ContainingCollectionView={this.props.ContainingCollectionView}
-            //         parentActive={this.props.active}
-            //         whenActiveChanged={this.props.whenActiveChanged}
-            //         bringToFront={emptyFunction} />
-            // );
+            return <p><b>{field.title?.toString()}</b></p>;
         }
         else if (field instanceof List) {
             return <div> {field.length ? field.map(f => Field.toString(f)).join(", ") : ""}  </div>;
-- 
cgit v1.2.3-70-g09d2

