From 16e663f807c77c56e64c23689dfdb7000fb2d0e9 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Thu, 13 Aug 2020 21:34:58 -0400
Subject: fixed warnings.

---
 src/client/views/collections/CollectionSchemaCells.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'src/client/views/collections/CollectionSchemaCells.tsx')

diff --git a/src/client/views/collections/CollectionSchemaCells.tsx b/src/client/views/collections/CollectionSchemaCells.tsx
index 9cdd3b082..20ce6b76d 100644
--- a/src/client/views/collections/CollectionSchemaCells.tsx
+++ b/src/client/views/collections/CollectionSchemaCells.tsx
@@ -81,9 +81,8 @@ export class CollectionSchemaCell extends React.Component<CellProps> {
             console.log("mounted2");
             const doc = Doc.GetProto(this.props.rowProps.original);
             const aliasdoc = await SearchUtil.GetAliasesOfDocument(doc);
-            let targetContext = undefined;
             if (aliasdoc.length > 0) {
-                targetContext = Cast(aliasdoc[0].context, Doc) as Doc;
+                const targetContext = Cast(aliasdoc[0].context, Doc) as Doc;
                 console.log(StrCast(targetContext.title));
                 runInAction(() => this.contents = StrCast(targetContext.title));
             }
@@ -424,7 +423,7 @@ export class CollectionSchemaCell extends React.Component<CellProps> {
                             :
                             this.returnHighlights(() => {
                                 console.log(props.fieldKey);
-                                let dateCheck: Date | undefined = this.props.rowProps.original[this.props.rowProps.column.id as string] instanceof DateField ? DateCast(this.props.rowProps.original[this.props.rowProps.column.id as string]).date : undefined;
+                                const dateCheck: Date | undefined = this.props.rowProps.original[this.props.rowProps.column.id as string] instanceof DateField ? DateCast(this.props.rowProps.original[this.props.rowProps.column.id as string]).date : undefined;
                                 if (dateCheck !== undefined) {
                                     cfield = dateCheck.toLocaleString();
                                 }
-- 
cgit v1.2.3-70-g09d2

