Skip to content

Commit ac21ce6

Browse files
committed
Merge branch 'reset-workflows-on-error' of Arnei/opencast-admin-interface into main
Pull request #1143 Reset workflow info on error
2 parents 9815c9e + 4aae738 commit ac21ce6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/slices/eventDetailsSlice.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,6 +2311,18 @@ const eventDetailsSlice = createSlice({
23112311
})
23122312
.addCase(fetchWorkflows.rejected, (state, action) => {
23132313
state.statusWorkflows = 'failed';
2314+
state.workflows = {
2315+
scheduling: false,
2316+
entries: [],
2317+
workflow: {
2318+
workflowId: "",
2319+
description: "",
2320+
},
2321+
};
2322+
state.workflowConfiguration = {
2323+
workflowId: "",
2324+
description: "",
2325+
};
23142326
state.errorWorkflows = action.error;
23152327
console.error(action.error);
23162328
})

0 commit comments

Comments
 (0)