diff --git a/src/app/credExplorer/WeightConfig.js b/src/app/credExplorer/WeightConfig.js index bcaaa81..22d7b5d 100644 --- a/src/app/credExplorer/WeightConfig.js +++ b/src/app/credExplorer/WeightConfig.js @@ -126,11 +126,10 @@ class EdgeConfig extends React.Component<{ edgeWeights: EdgeWeights, onChange: (EdgeWeights) => void, }> { - render() { - const controls = []; - for (const key of Object.keys(this.props.edgeWeights)) { + weightControls() { + return Object.keys(this.props.edgeWeights).map((key) => { const {logWeight} = this.props.edgeWeights[key]; - controls.push( + return (