aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2021-02-20 11:38:45 -0500
committerusodhi <61431818+usodhi@users.noreply.github.com>2021-02-20 11:38:45 -0500
commit7cbf63ed6fa7517d5b80fba50529544e0cf1d625 (patch)
treec454b3c0adc21d0fa444a801b4e477086afb1147
parentec18ae95005b9adc674a1ed6c3e976aa987ed7d2 (diff)
unrelated
-rw-r--r--src/client/ClientRecommender.tsx2
-rw-r--r--src/client/util/SelectionManager.ts2
-rw-r--r--src/fields/Schema.ts2
3 files changed, 2 insertions, 4 deletions
diff --git a/src/client/ClientRecommender.tsx b/src/client/ClientRecommender.tsx
index 3f875057e..1d4653471 100644
--- a/src/client/ClientRecommender.tsx
+++ b/src/client/ClientRecommender.tsx
@@ -40,8 +40,6 @@ const fieldkey = "data";
@observer
export class ClientRecommender extends React.Component<RecommenderProps> {
-
-
static Instance: ClientRecommender;
private mainDoc?: RecommenderDocument;
private docVectors: Set<RecommenderDocument> = new Set();
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts
index f657e5b40..b132af035 100644
--- a/src/client/util/SelectionManager.ts
+++ b/src/client/util/SelectionManager.ts
@@ -66,7 +66,7 @@ export namespace SelectionManager {
manager.SelectSchemaView(colSchema, document);
}
- const IsSelectedCache = computedFn(function isSelected(doc: DocumentView) { // wraapping get() in a computedFn only generates mobx() invalidations when the return value of the function for the specific get parameters has changed
+ const IsSelectedCache = computedFn(function isSelected(doc: DocumentView) { // wrapping get() in a computedFn only generates mobx() invalidations when the return value of the function for the specific get parameters has changed
return manager.SelectedViews.get(doc) ? true : false;
});
// computed functions, such as used in IsSelected generate errors if they're called outside of a
diff --git a/src/fields/Schema.ts b/src/fields/Schema.ts
index 4607e0fd5..e0fc5902b 100644
--- a/src/fields/Schema.ts
+++ b/src/fields/Schema.ts
@@ -68,7 +68,7 @@ export function makeInterface<T extends Interface[]>(...schemas: T): InterfaceFu
if (doc instanceof Doc || doc === undefined) {
return fn(doc || new Doc);
} else {
- return doc.map(fn);
+ if (!doc instanceof Promise) return doc.map(fn);
}
};
}