Skip to content

Commit

Permalink
[release-3.3] fix: Render wrong form item while multiple branch (#3480)
Browse files Browse the repository at this point in the history
fix: Render wrong form item while multiple branch

Co-authored-by: elichen95 <elichen95@163.com>
  • Loading branch information
ks-ci-bot and EliChen95 authored Aug 1, 2022
1 parent 4b7ffe3 commit 1a322ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Forms/Pipelines/ParamsFormModal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ export default class ParamsFormModal extends React.Component {
}

renderParamsItem(param) {
const type = param?.type ?? ''.toLowerCase().split('parameterdefinition')[0]
const type = (param?.type ?? '')
.toLowerCase()
.split('parameterdefinition')[0]
const defaultValue = get(param, 'defaultParameterValue.value')
switch (type) {
case 'string':
Expand Down

0 comments on commit 1a322ef

Please sign in to comment.