diff --git a/ui/src/redux/repoDeploy.tsx b/ui/src/redux/repoDeploy.tsx index ed3e913e..98c84d2c 100644 --- a/ui/src/redux/repoDeploy.tsx +++ b/ui/src/redux/repoDeploy.tsx @@ -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