Skip to content

Commit e743534

Browse files
committed
Clear execution errors at start
1 parent b784958 commit e743534

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/frontend/reducers/output/execute.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ const slice = createSlice({
115115
.addCase(performExecute.fulfilled, (state, action) => {
116116
const { stdout, stderr } = action.payload;
117117
Object.assign(state, { stdout, stderr });
118+
delete state.error;
118119
state.requestsInProgress -= 1;
119120
})
120121
.addCase(performExecute.rejected, (state, action) => {
@@ -130,6 +131,7 @@ const slice = createSlice({
130131
state.requestsInProgress = 1; // Only tracking one request
131132
state.stdout = '';
132133
state.stderr = '';
134+
delete state.error;
133135
}),
134136
)
135137
.addCase(

0 commit comments

Comments
 (0)