Skip to content

Commit

Permalink
fix: After editing the pipeline configuration, the pipeline disappears
Browse files Browse the repository at this point in the history
Signed-off-by: TheYoungManLi <cjl@kubesphere.io>
  • Loading branch information
weili520 committed Dec 9, 2021
1 parent 34f942f commit d17ce10
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ export default class PipelineDetailLayout extends React.Component {

getOperations = () => {
const { detail } = toJS(this.store)
const { devops, cluster, workspace, name } = this.props.match.params
const { params } = this.props.match
const { devops, cluster, workspace, name } = params

return [
{
Expand All @@ -143,8 +144,9 @@ export default class PipelineDetailLayout extends React.Component {
type: 'control',
text: t('EDIT_SETTINGS'),
action: 'edit',
onClick: () => {
onClick: async () => {
this.getPipeLineConfig()
await this.store.getJenkinsFile(params)
this.trigger('pipeline.advance.edit', {
devops,
cluster,
Expand Down

0 comments on commit d17ce10

Please sign in to comment.