Hide "root" variable in job web page

When displaying a job variant's variables, the web page shows
they are all descended from a variable named "root".  This is
misleading, and can be avoided by passing this parameter to
ReactJson.  This causes the root of the hierarchy to be an
unnamed dict.

Change-Id: I4f123507f21539221da47ebf5372a93b52ebf70b
This commit is contained in:
James E. Blair
2019-08-08 13:10:08 -07:00
parent 5b0bbb6ca5
commit 06e039c837

View File

@@ -129,6 +129,7 @@ class JobVariant extends React.Component {
<span style={{whiteSpace: 'pre'}}>
<ReactJson
src={value}
name={null}
sortKeys={true}
enableClipboard={false}
displayDataTypes={false}/>