diff --git a/internal/server/router.go b/internal/server/router.go
index 2b292776..19837457 100644
--- a/internal/server/router.go
+++ b/internal/server/router.go
@@ -93,8 +93,8 @@ func NewRouter(c *RouterConfig) *gin.Engine {
r := gin.New()
r.Use(cors.New(cors.Config{
- AllowOrigins: []string{"http://localhost:3000"},
- // AllowAllOrigins: true,
+ // AllowOrigins: []string{"http://localhost:3000"},
+ AllowAllOrigins: true,
AllowCredentials: true,
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"},
AllowHeaders: []string{"Origin", "Authorization", "Accept", "Content-Length", "Content-Type"},
diff --git a/ui/src/components/DeployConfirm.tsx b/ui/src/components/DeployConfirm.tsx
index 41dd4985..ef1a9820 100644
--- a/ui/src/components/DeployConfirm.tsx
+++ b/ui/src/components/DeployConfirm.tsx
@@ -50,7 +50,7 @@ export default function DeployConfirm(props: DeployConfirmProps): JSX.Element {
0)? {marginBottom: 0} : {}}
+ style={(props.deployment.statuses && props.deployment.statuses.length > 0)? {marginBottom: 0} : {marginBottom: 12}}
>
{(props.deployment.statuses && props.deployment.statuses.length > 0)?
diff --git a/ui/src/components/DeploymentStatusSteps.tsx b/ui/src/components/DeploymentStatusSteps.tsx
index 3b24ef72..64ca30b4 100644
--- a/ui/src/components/DeploymentStatusSteps.tsx
+++ b/ui/src/components/DeploymentStatusSteps.tsx
@@ -11,13 +11,7 @@ interface DeploymentStatusStepsProps {
export default function DeploymentStatusSteps(props: DeploymentStatusStepsProps): JSX.Element {
return (
-
+
{props.statuses.map((status, idx) => {
return (
) => {
+ state.reviews = state.reviews.map((review) => {
+ return (review.id === action.payload.review?.id)? action.payload.review : review
+ })
}
},
extraReducers: builder => {
diff --git a/ui/src/views/Deployment.tsx b/ui/src/views/Deployment.tsx
index d8d1093a..08985791 100644
--- a/ui/src/views/Deployment.tsx
+++ b/ui/src/views/Deployment.tsx
@@ -59,6 +59,7 @@ export default function DeploymentView(): JSX.Element {
const sub = subscribeEvents((event) => {
dispatch(slice.actions.handleDeploymentEvent(event))
+ dispatch(slice.actions.handleReviewEvent(event))
})
return () => {