diff options
| author | mehekj <mehek.jethani@gmail.com> | 2023-03-01 21:45:13 -0500 |
|---|---|---|
| committer | mehekj <mehek.jethani@gmail.com> | 2023-03-01 21:45:13 -0500 |
| commit | 67a0081bb4fb713b730fa86a5b67d3c061426514 (patch) | |
| tree | adb3b78427ae3a7685724695700054b88404cdb0 /src/client/views/collections/collectionSchema/SchemaRowBox.tsx | |
| parent | fdf2f866e948d030e7b29009ed5c06e384d74fe1 (diff) | |
cells editable
Diffstat (limited to 'src/client/views/collections/collectionSchema/SchemaRowBox.tsx')
| -rw-r--r-- | src/client/views/collections/collectionSchema/SchemaRowBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx index 4b709f670..05197d05f 100644 --- a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx +++ b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx @@ -93,7 +93,7 @@ export class SchemaRowBox extends ViewBoxBaseComponent<FieldViewProps>() { onPointerEnter={this.onPointerEnter} onPointerLeave={this.onPointerLeave} ref={(row: HTMLDivElement | null) => { - row && this.schemaView?.addRowRef(this.rootDoc, row); + row && this.schemaView?.addRowRef?.(this.rootDoc, row); this._ref = row; }}> <div @@ -120,7 +120,7 @@ export class SchemaRowBox extends ViewBoxBaseComponent<FieldViewProps>() { </div> <div className="row-cells"> {this.schemaView?.columnKeys?.map((key, index) => ( - <SchemaTableCell key={key} Document={this.rootDoc} fieldKey={key} columnWidth={this.schemaView?.displayColumnWidths[index] ?? CollectionSchemaView._minColWidth} /> + <SchemaTableCell key={key} Document={this.rootDoc} fieldKey={key} columnWidth={this.schemaView?.displayColumnWidths[index] ?? CollectionSchemaView._minColWidth} isRowActive={this.props.isContentActive} /> ))} </div> </div> |
