aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSchemaCells.tsx
diff options
context:
space:
mode:
authorab <abdullah_ahmed@brown.edu>2019-09-16 17:15:37 -0400
committerab <abdullah_ahmed@brown.edu>2019-09-16 17:15:37 -0400
commite0b84cf329d7a9c9bda1aadbf25894c4bcc8f13a (patch)
treec71ea31f21201f178d5cdaa545ffdc0262834c24 /src/client/views/collections/CollectionSchemaCells.tsx
parent4d3e0171faaf6bdce40cc56e93f6e4bf900acf47 (diff)
demo touches
Diffstat (limited to 'src/client/views/collections/CollectionSchemaCells.tsx')
-rw-r--r--src/client/views/collections/CollectionSchemaCells.tsx19
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;