Skip to content

Commit 7c60795

Browse files
author
Maksym Mykhailenko
committed
fix: show error on milestone actions
1 parent aab1472 commit 7c60795

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/projects/actions/productsTimelines.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export function updateProductMilestone(productId, timelineId, milestoneId, updat
133133
}).catch((error) => {
134134
dispatch({
135135
type: UPDATE_PRODUCT_MILESTONE_FAILURE,
136+
payload: error,
136137
meta: { productId, milestoneId }
137138
})
138139
throw error
@@ -234,6 +235,7 @@ export function completeProductMilestone(productId, timelineId, milestoneId, upd
234235
}).catch((error) => {
235236
dispatch({
236237
type: COMPLETE_PRODUCT_MILESTONE_FAILURE,
238+
payload: error,
237239
meta: { productId, milestoneId }
238240
})
239241
throw error
@@ -283,6 +285,7 @@ export function extendProductMilestone(productId, timelineId, milestoneId, exten
283285
}).catch((error) => {
284286
dispatch({
285287
type: EXTEND_PRODUCT_MILESTONE_FAILURE,
288+
payload: error,
286289
meta: { productId, milestoneId }
287290
})
288291
throw error
@@ -365,6 +368,7 @@ export function submitFinalFixesRequest(productId, timelineId, milestoneId, fina
365368
}).catch((error) => {
366369
dispatch({
367370
type: SUBMIT_FINAL_FIXES_REQUEST_FAILURE,
371+
payload: error,
368372
meta: { productId, milestoneId }
369373
})
370374
throw error
@@ -437,6 +441,7 @@ export function completeFinalFixesMilestone(productId, timelineId, milestoneId,
437441
}).catch((error) => {
438442
dispatch({
439443
type: COMPLETE_PRODUCT_MILESTONE_FAILURE,
444+
payload: error,
440445
meta: { productId, milestoneId }
441446
})
442447
throw error

0 commit comments

Comments
 (0)