aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSchemaCells.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-17 09:43:13 -0400
committerbobzel <zzzman@gmail.com>2020-08-17 09:43:13 -0400
commitd7b5f5f6199b36af556e68370b5b7c462db7869f (patch)
tree0ddec02f3c041f379de3703218f0c9c096ee07f9 /src/client/views/collections/CollectionSchemaCells.tsx
parent7044fda26b17c0dac007952fb146bc8307339dce (diff)
fixed behavior of schemaHeader menu (except when pan or zoom occurs). Changed search to show aliases by default.
Diffstat (limited to 'src/client/views/collections/CollectionSchemaCells.tsx')
-rw-r--r--src/client/views/collections/CollectionSchemaCells.tsx11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/client/views/collections/CollectionSchemaCells.tsx b/src/client/views/collections/CollectionSchemaCells.tsx
index 003a1e9ff..d46aa3574 100644
--- a/src/client/views/collections/CollectionSchemaCells.tsx
+++ b/src/client/views/collections/CollectionSchemaCells.tsx
@@ -71,15 +71,6 @@ export class CollectionSchemaCell extends React.Component<CellProps> {
async componentDidMount() {
document.addEventListener("keydown", this.onKeyDown);
- if (this.type === "context") {
- const doc = Doc.GetProto(this.props.rowProps.original);
- const aliasdoc = await SearchUtil.GetAliasesOfDocument(doc);
- if (aliasdoc.length > 0) {
- const targetContext = Cast(aliasdoc[0].context, Doc, null);
- targetContext && runInAction(() => this.contents = StrCast(targetContext.title));
- }
- }
-
}
@observable contents: string = "";
@@ -303,7 +294,7 @@ export class CollectionSchemaCell extends React.Component<CellProps> {
// </div>
// );
const positions = [];
- let cfield = ComputedField.WithoutComputed(() => FieldValue(props.Document[props.fieldKey]));
+ let cfield = props.Document[props.fieldKey];
this.type = props.fieldKey;
if (StrCast(this.props.Document._searchString).toLowerCase() !== "") {
let term = Field.toString(cfield as Field);