Skip to content

Commit

Permalink
fix(ui): clean selected node when returning on workflow main page (#5090
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sguiheux authored Apr 1, 2020
1 parent 22c05bd commit b779efb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/store/pipelines.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class PipelinesState {
return this._http.post<Parameter>(url, parameter)
.pipe(tap((param) => {
const state = ctx.getState();
let pipToUpdate = state.pipeline;
let pipToUpdate = cloneDeep(state.pipeline);
if (!pipToUpdate.parameters) {
pipToUpdate.parameters = new Array<Parameter>();
}
Expand Down
1 change: 1 addition & 0 deletions ui/src/app/store/workflow.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,7 @@ export class WorkflowState {
...state,
workflowRun: null,
workflowNodeRun: null,
node: null,
canEdit: state.workflow.permissions.writable,
sidebar: WorkflowSidebarMode.RUNS
});
Expand Down

0 comments on commit b779efb

Please sign in to comment.