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

Commit 38fac57

Browse files
author
Noah Lee
committed
Fix the bug for env badge (#302)
1 parent 83bd909 commit 38fac57

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ui/src/redux/repoDeploy.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,7 @@ export const repoDeploySlice = createSlice({
344344
state.config = config
345345
})
346346
.addCase(fetchCurrentDeploymentOfEnv.fulfilled, (state, action) => {
347-
if (action.payload) {
348-
state.currentDeployment = action.payload
349-
}
347+
state.currentDeployment = action.payload? action.payload : undefined
350348
})
351349
.addCase(fetchCurrentDeploymentOfEnv.rejected, (state) => {
352350
state.currentDeployment = undefined

0 commit comments

Comments
 (0)