Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Fix the bug for env badge (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Lee committed Jan 8, 2022
1 parent 83bd909 commit 38fac57
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/src/redux/repoDeploy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,7 @@ export const repoDeploySlice = createSlice({
state.config = config
})
.addCase(fetchCurrentDeploymentOfEnv.fulfilled, (state, action) => {
if (action.payload) {
state.currentDeployment = action.payload
}
state.currentDeployment = action.payload? action.payload : undefined
})
.addCase(fetchCurrentDeploymentOfEnv.rejected, (state) => {
state.currentDeployment = undefined
Expand Down

0 comments on commit 38fac57

Please sign in to comment.