Skip to content

Commit

Permalink
pass stage_type with typical format in createStage
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRyanSmith committed Oct 17, 2023
1 parent ba9d5b8 commit 3199c1e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion client-src/elements/chromedash-add-stage-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,14 @@ class ChromedashAddStageDialog extends LitElement {
this.shadowRoot.querySelector('sl-dialog').hide();
return;
}
window.csClient.createStage(this.featureId, {stage_type: this.getStageSelectValue()})
window.csClient.createStage(
this.featureId,
{
stage_type: {
form_field_name: 'stage_type',
value: this.getStageSelectValue(),
},
})
.then(() => {
this.shadowRoot.querySelector('sl-dialog').hide();
location.reload();
Expand Down

0 comments on commit 3199c1e

Please sign in to comment.