aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-02-21 19:40:38 -0500
committerbobzel <zzzman@gmail.com>2021-02-21 19:40:38 -0500
commitdcf0389b770b06a04a45b4aedd62bf455d7848e7 (patch)
tree3153b4dd79c61318fe27391943055690b7056b63 /src/client/views/collections
parent1c1b00e5e164ae82275e03b488a5a81eb1721234 (diff)
fixed compile warnings.
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx2
-rw-r--r--src/client/views/collections/CollectionTimeView.tsx2
-rw-r--r--src/client/views/collections/TreeView.tsx1
3 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index a1021b6a1..a9438f8f7 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -257,7 +257,7 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
const docs = doc instanceof Doc ? [doc] : doc;
docs.forEach(doc => Doc.AddDocToList(Cast(Doc.UserDoc().myFileOrphans, Doc, null), "data", doc));
return this.addDocument(doc);
- }
+ };
if (html) {
if (FormattedTextBox.IsFragment(html)) {
diff --git a/src/client/views/collections/CollectionTimeView.tsx b/src/client/views/collections/CollectionTimeView.tsx
index 8067e1d07..cd91cbf63 100644
--- a/src/client/views/collections/CollectionTimeView.tsx
+++ b/src/client/views/collections/CollectionTimeView.tsx
@@ -130,7 +130,7 @@ export class CollectionTimeView extends CollectionSubView(doc => doc) {
@action
contentsDown = (e: React.MouseEvent) => {
- let prevFilterIndex = NumCast(this.layoutDoc._prevFilterIndex);
+ const prevFilterIndex = NumCast(this.layoutDoc._prevFilterIndex);
if (prevFilterIndex > 0) {
this.goTo(prevFilterIndex - 1);
} else {
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx
index c0d3be96c..0f69602fa 100644
--- a/src/client/views/collections/TreeView.tsx
+++ b/src/client/views/collections/TreeView.tsx
@@ -32,7 +32,6 @@ import { CollectionTreeView } from './CollectionTreeView';
import { CollectionView, CollectionViewType } from './CollectionView';
import "./TreeView.scss";
import React = require("react");
-import { ContextMenu } from '../ContextMenu';
export interface TreeViewProps {
document: Doc;