aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FieldView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-03-29 12:22:35 -0400
committerbobzel <zzzman@gmail.com>2021-03-29 12:22:35 -0400
commita1a9803096adde0cd932e703080948ef1d1724f7 (patch)
tree82cd4382cfb423a01cf61f04187e09451328ae00 /src/client/views/nodes/FieldView.tsx
parent317dd86ab8bad7afc927a1d6dc7e5d458bac4340 (diff)
fixed doc decorations for dictation. gave dictation docs a title. minor cleanup.
Diffstat (limited to 'src/client/views/nodes/FieldView.tsx')
-rw-r--r--src/client/views/nodes/FieldView.tsx23
1 files changed, 1 insertions, 22 deletions
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>;