diff options
author | bob <bcz@cs.brown.edu> | 2019-02-28 17:24:26 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-02-28 17:24:26 -0500 |
commit | 179be4e314409269494da0d5bc52ca05c778d535 (patch) | |
tree | 872b5cba53562320e1831f6f4b4c6967d3cbf02f /src | |
parent | 77a7a2cd68a4b29746d02da63644c99eaeda5844 (diff) |
fixed warning
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/KeyValueBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/KeyValueBox.tsx b/src/client/views/nodes/KeyValueBox.tsx index 7e2426b58..75e2952b7 100644 --- a/src/client/views/nodes/KeyValueBox.tsx +++ b/src/client/views/nodes/KeyValueBox.tsx @@ -65,8 +65,8 @@ export class KeyValueBox extends React.Component<FieldViewProps> { let i = 0; for (let key in ids) { if (i++ % 2 == 0) - rows.push(<KeyValuePair doc={realDoc} rowStyle="keyValueBox-evenRow" fieldId={key} />) - else rows.push(<KeyValuePair doc={realDoc} rowStyle="keyValueBox-oddRow" fieldId={key} />) + rows.push(<KeyValuePair doc={realDoc} rowStyle="keyValueBox-evenRow" fieldId={key} key={key} />) + else rows.push(<KeyValuePair doc={realDoc} rowStyle="keyValueBox-oddRow" fieldId={key} key={key} />) } return rows; } |