diff options
| author | mehekj <mehek.jethani@gmail.com> | 2023-01-28 23:27:17 -0500 |
|---|---|---|
| committer | mehekj <mehek.jethani@gmail.com> | 2023-01-28 23:27:17 -0500 |
| commit | 6c58ca9d473103624be82c6f2da90f22bafd7b98 (patch) | |
| tree | 02b1ac45e68f3e61b54f22a1792d7241cb3b4c19 /src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx | |
| parent | 9f139c7f0f571bdfea8ce99fc0a507724eb8fd74 (diff) | |
version without schemarow as documentview
Diffstat (limited to 'src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx')
| -rw-r--r-- | src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx b/src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx index a6a5f66ab..8e6d3d78a 100644 --- a/src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx +++ b/src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx @@ -40,7 +40,7 @@ export class SchemaColumnHeader extends React.Component<SchemaColumnHeaderProps> case ColumnType.Boolean: return ( <> - <input type="checkbox" name="" id="" value={this._newFieldDefault ?? false} onPointerDown={e => e.stopPropagation()} onChange={action(e => (this._newFieldDefault = e.target.value))} /> + <input type="checkbox" name="" id="" value={this._newFieldDefault} onPointerDown={e => e.stopPropagation()} onChange={action(e => (this._newFieldDefault = e.target.checked))} /> {this._newFieldDefault ? 'true' : 'false'} </> ); |
