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 3e0a9c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class Pipeline extends React.Component {
store: this.store,
jsonData: toJS(pipelineJsonData.pipelineJson),
params,
success: () => {
success: async () => {
const { devops, name } = params
localStorage.removeItem(`${globals.user.username}-${devops}-${name}`)
this.handleRefresh()
Expand Down

0 comments on commit 3e0a9c6

Please sign in to comment.