Skip to content

Commit

Permalink
Do not hide rustfmt output when it failed
Browse files Browse the repository at this point in the history
Fixes #996
  • Loading branch information
shepmaster committed Nov 20, 2023
1 parent 5d792f8 commit 5497162
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/frontend/reducers/output/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ const slice = createSlice({
state.focus = Focus.Format;
})

.addCase(performFormat.fulfilled, (state) => {
state.focus = undefined;
.addCase(performFormat.fulfilled, (state, action) => {
if (action.payload.success) {
state.focus = undefined;
}
})

.addCase(performGistLoad.pending, setGist)
Expand Down

0 comments on commit 5497162

Please sign in to comment.