diff options
author | bobzel <zzzman@gmail.com> | 2021-02-23 10:23:26 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-02-23 10:23:26 -0500 |
commit | ee2f9feea2ec70dbf5a60d2b26a61b05eca3dbf5 (patch) | |
tree | a1c9626742dc939ee3c982200fb8a7f611e72713 /src/client/views/nodes/KeyValuePair.tsx | |
parent | 77b1f624f24e055c498e3104fc84227a545a05b9 (diff) |
cleaned up EditableView a bit
Diffstat (limited to 'src/client/views/nodes/KeyValuePair.tsx')
-rw-r--r-- | src/client/views/nodes/KeyValuePair.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/views/nodes/KeyValuePair.tsx b/src/client/views/nodes/KeyValuePair.tsx index ce9d8bed5..ebb953dad 100644 --- a/src/client/views/nodes/KeyValuePair.tsx +++ b/src/client/views/nodes/KeyValuePair.tsx @@ -125,12 +125,9 @@ export class KeyValuePair extends React.Component<KeyValuePairProps> { contents={contents} maxHeight={36} height={"auto"} - GetValue={() => { - return Field.toKeyValueString(props.Document, props.fieldKey); - }} + GetValue={() => Field.toKeyValueString(props.Document, props.fieldKey)} SetValue={(value: string) => - KeyValueBox.SetField(props.Document, props.fieldKey, value)}> - </EditableView> + KeyValueBox.SetField(props.Document, props.fieldKey, value)} /> </div> </td> </tr> |