diff options
| author | bobzel <zzzman@gmail.com> | 2023-09-11 23:19:59 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-09-11 23:19:59 -0400 |
| commit | 74e72adabd59fc58107fd73590f1e7e9cbaf4bde (patch) | |
| tree | 4c6408f10080602028c0248eec7d0db904efff55 /src/client/views/nodes/KeyValuePair.tsx | |
| parent | 3a048ae3acbbf63611bfbb7cded772fc3decd526 (diff) | |
clean up some runtime warnings about missing keys/values
Diffstat (limited to 'src/client/views/nodes/KeyValuePair.tsx')
| -rw-r--r-- | src/client/views/nodes/KeyValuePair.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/KeyValuePair.tsx b/src/client/views/nodes/KeyValuePair.tsx index b0d041bdd..f22cb195f 100644 --- a/src/client/views/nodes/KeyValuePair.tsx +++ b/src/client/views/nodes/KeyValuePair.tsx @@ -111,7 +111,7 @@ export class KeyValuePair extends React.Component<KeyValuePairProps> { X </button> <input className="keyValuePair-td-key-check" type="checkbox" style={hover} onChange={this.handleCheck} ref={this.checkbox} /> - <Tooltip title={Object.entries(new DocumentOptions()).find((pair: [string, FInfo]) => pair[0].replace(/^_/, '') === props.fieldKey)?.[1].description}> + <Tooltip title={Object.entries(new DocumentOptions()).find((pair: [string, FInfo]) => pair[0].replace(/^_/, '') === props.fieldKey)?.[1].description ?? ''}> <div className="keyValuePair-keyField" style={{ marginLeft: 20 * (props.fieldKey.match(/_/g)?.length || 0), color: keyStyle }}> {'('.repeat(parenCount)} {props.fieldKey} |
