Skip to content

Commit

Permalink
Fix pipeline stage updates not being persisted (#20950)
Browse files Browse the repository at this point in the history
  • Loading branch information
grotlue authored Nov 20, 2024
1 parent 21da00d commit e41c32a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions graylog2-web-interface/src/pages/PipelineDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,14 @@ const PipelineDetailsPage = () => {
};

const _onStagesChange = (newStages, callback) => {
const newPipeline = {
const pipelineWithNewStages = {
...pipeline,
stages: newStages,
source: SourceGenerator.generatePipeline(pipeline),
};

const newPipeline = {
...pipelineWithNewStages,
source: SourceGenerator.generatePipeline(pipelineWithNewStages),
};

PipelinesActions.update(newPipeline);
Expand Down

0 comments on commit e41c32a

Please sign in to comment.