diff options
author | bobzel <zzzman@gmail.com> | 2020-09-27 11:19:35 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-27 11:19:35 -0400 |
commit | 73f1f5e4a1fdbd443883bca011a92c707774454d (patch) | |
tree | e066756b8fa540a599e1c404251f11edc083ccff /src | |
parent | e301d23c10d4dd9b7677100bdeba1b02998bf8ac (diff) |
fixed selecting schema cells to select the document after focusing on it.
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) { |