diff options
author | bobzel <zzzman@gmail.com> | 2020-09-28 02:10:54 +0000 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-28 02:10:54 +0000 |
commit | 85f6e30109671a22e296c9b13b3940debd3c39a1 (patch) | |
tree | 7b4d9b5eb437129443a82d784b8253dbc883be63 /src | |
parent | 8fa7ba1fb75d5f1b83230b8be738a64564138a6b (diff) | |
parent | 73f1f5e4a1fdbd443883bca011a92c707774454d (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/CollectionSchemaCells.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSchemaCells.tsx b/src/client/views/collections/CollectionSchemaCells.tsx index 2443bd34e..1483da99e 100644 --- a/src/client/views/collections/CollectionSchemaCells.tsx +++ b/src/client/views/collections/CollectionSchemaCells.tsx @@ -14,7 +14,7 @@ import { SchemaHeaderField } from "../../../fields/SchemaHeaderField"; import { ComputedField } from "../../../fields/ScriptField"; import { BoolCast, Cast, DateCast, FieldValue, NumCast, StrCast } from "../../../fields/Types"; import { ImageField } from "../../../fields/URLField"; -import { Utils } from "../../../Utils"; +import { Utils, emptyFunction } from "../../../Utils"; import { Docs } from "../../documents/Documents"; import { DocumentType } from "../../documents/DocumentTypes"; import { DocumentManager } from "../../util/DocumentManager"; @@ -167,7 +167,8 @@ export class CollectionSchemaCell extends React.Component<CellProps> { if (this.props.Document._searchDoc) { const aliasdoc = await SearchUtil.GetAliasesOfDocument(this._rowDataDoc); const targetContext = aliasdoc.length <= 0 ? undefined : Cast(aliasdoc[0].context, Doc, null); - DocumentManager.Instance.jumpToDocument(this._rowDoc, false, () => undefined, targetContext); + DocumentManager.Instance.jumpToDocument(this._rowDoc, false, emptyFunction, targetContext, + undefined, undefined, undefined, () => this.props.setPreviewDoc(this._rowDoc)); } } renderCellWithType(type: string | undefined) { |