Skip to content

Commit b779efb

Browse files
authored
fix(ui): clean selected node when returning on workflow main page (#5090)
1 parent 22c05bd commit b779efb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ui/src/app/store/pipelines.state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class PipelinesState {
155155
return this._http.post<Parameter>(url, parameter)
156156
.pipe(tap((param) => {
157157
const state = ctx.getState();
158-
let pipToUpdate = state.pipeline;
158+
let pipToUpdate = cloneDeep(state.pipeline);
159159
if (!pipToUpdate.parameters) {
160160
pipToUpdate.parameters = new Array<Parameter>();
161161
}

ui/src/app/store/workflow.state.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,7 @@ export class WorkflowState {
12171217
...state,
12181218
workflowRun: null,
12191219
workflowNodeRun: null,
1220+
node: null,
12201221
canEdit: state.workflow.permissions.writable,
12211222
sidebar: WorkflowSidebarMode.RUNS
12221223
});

0 commit comments

Comments
 (0)