Skip to content

Commit

Permalink
fix(core/pipeline): make dropdown option labels always be strings (#7322
Browse files Browse the repository at this point in the history
)

Also do not repeat '* required' text
  • Loading branch information
christopherthielen committed Aug 14, 2019
1 parent 1e779ef commit 1251159
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,23 @@ export class Parameters extends React.Component<IParametersProps> {
{...props}
clearable={false}
inputClassName={'parameter-option-select'}
options={parameter.options.map(o => ({ label: o.value, value: o.value }))}
options={parameter.options.map(o => ({ label: `${o.value}`, value: o.value }))}
/>
)}
required={parameter.required}
/>
</div>
)}
{hasRequiredParameters && (
<div className="form-group">
<div className="col-md-4 col-md-offset-4">
<em>* Required</em>
</div>
</div>
)}
</div>
);
})}
{hasRequiredParameters && (
<div className="form-group sp-margin-l-top">
<div className="col-md-4 col-md-offset-4">
<em>* Required</em>
</div>
</div>
)}
</>
);
}
Expand Down

0 comments on commit 1251159

Please sign in to comment.