diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-05 22:20:49 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-05 22:20:49 -0400 |
| commit | cc905d329c88d7bdf9b7324a4f02ab92906ba7c8 (patch) | |
| tree | 02f46ac38a8c4c1430683e2f365b5bff062295ed /src/client/views/collections/collectionFreeForm | |
| parent | 9ea9c841adc40691d50425ccfc5af97e03872568 (diff) | |
cleanup of presentation code pre-merge.
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/PropertiesView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/PropertiesView.tsx b/src/client/views/collections/collectionFreeForm/PropertiesView.tsx index 2b0a00498..dcbf8e989 100644 --- a/src/client/views/collections/collectionFreeForm/PropertiesView.tsx +++ b/src/client/views/collections/collectionFreeForm/PropertiesView.tsx @@ -552,7 +552,7 @@ export class PropertiesView extends React.Component<PropertiesViewProps> { getField(key: string) { //if (this.selectedDoc) { - return Field.toString(this.selectedDoc[key] as Field); + return Field.toString(this?.[key] as Field); // } else { // return undefined as Opt<string>; // } @@ -698,7 +698,7 @@ export class PropertiesView extends React.Component<PropertiesViewProps> { <input className="width-range" type="range" defaultValue={Number(this.widthStk)} min={1} max={100} onChange={(action((e) => this.widthStk = e.target.value))} - onMouseDown={(e) => { this._widthUndo = UndoManager.StartBatch("width undo");; }} + onMouseDown={(e) => { this._widthUndo = UndoManager.StartBatch("width undo"); }} onMouseUp={(e) => { this._widthUndo?.end(); this._widthUndo = undefined; }} /> </div> |
