Skip to content

Commit

Permalink
Fix: parameters UI bug (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
minghay authored Oct 15, 2024
1 parent 193fd45 commit 0f2f570
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/components/pipeline-event-row/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default Component.extend({
).forEach(([propertyName, propertyVal]) => {
const keys = Object.keys(propertyVal);

if (keys.length === 1 && keys[0] === 'value') {
if (keys.length === 2 && keys[0] === 'value') {
pipelineParameters[propertyName] = propertyVal;
} else {
jobParameters[propertyName] = propertyVal;
Expand Down
8 changes: 4 additions & 4 deletions app/components/pipeline-event-row/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@
{{#each-in this.pipelineParameters as |pName pVal|}}
<li>
<span class="parameter-name badge">
{{pName}}
{{pName}}:
</span>
<span class="parameter-value">
:{{pVal.value}}
{{pVal.value}}
</span>
</li>
{{/each-in}}
Expand All @@ -175,10 +175,10 @@
{{#each-in parameters as |pName pVal|}}
<li>
<span class="parameter-name badge">
{{pName}}
{{pName}}:
</span>
<span class="parameter-value">
:{{pVal.value}}
{{pVal.value}}
</span>
</li>
{{/each-in}}
Expand Down

0 comments on commit 0f2f570

Please sign in to comment.