diff --git a/src/pages/devops/containers/Pipelines/Detail/Layout/pipeline.jsx b/src/pages/devops/containers/Pipelines/Detail/Layout/pipeline.jsx index 3eee1149215..40e02625356 100644 --- a/src/pages/devops/containers/Pipelines/Detail/Layout/pipeline.jsx +++ b/src/pages/devops/containers/Pipelines/Detail/Layout/pipeline.jsx @@ -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 [ { @@ -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,