diff options
| author | ab <abdullah_ahmed@brown.edu> | 2019-09-16 17:15:37 -0400 |
|---|---|---|
| committer | ab <abdullah_ahmed@brown.edu> | 2019-09-16 17:15:37 -0400 |
| commit | e0b84cf329d7a9c9bda1aadbf25894c4bcc8f13a (patch) | |
| tree | c71ea31f21201f178d5cdaa545ffdc0262834c24 /src/client/views/collections/CollectionSchemaCells.tsx | |
| parent | 4d3e0171faaf6bdce40cc56e93f6e4bf900acf47 (diff) | |
demo touches
Diffstat (limited to 'src/client/views/collections/CollectionSchemaCells.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSchemaCells.tsx | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/client/views/collections/CollectionSchemaCells.tsx b/src/client/views/collections/CollectionSchemaCells.tsx index bf8c4b6f7..511fbc3a0 100644 --- a/src/client/views/collections/CollectionSchemaCells.tsx +++ b/src/client/views/collections/CollectionSchemaCells.tsx @@ -91,17 +91,14 @@ export class CollectionSchemaCell extends React.Component<CellProps> { this.props.changeFocusedCellByIndex(this.props.row, this.props.col); this.props.setPreviewDoc(this.props.rowProps.original); - const data = await DocListCastAsync(this.props.Document.data); - if (data) { - let url: string; - if (url = StrCast(data[0].href)) { - try { - new URL(url); - const temp = window.open(url)!; - temp.blur(); - window.focus(); - } catch { } - } + let url: string; + if (url = StrCast(this.props.rowProps.row.href)) { + try { + new URL(url); + const temp = window.open(url)!; + temp.blur(); + window.focus(); + } catch { } } // this._isEditing = true; |
