mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-01 01:18:10 +02:00
chore: await so change requests banner shows up after adding release plans changes (#9328)
This commit is contained in:
parent
2a6487e7e9
commit
c938b0fa6c
@ -84,7 +84,7 @@ export const FeatureStrategyMenu = ({
|
||||
};
|
||||
|
||||
const addReleasePlanToChangeRequest = async () => {
|
||||
addChange(projectId, environmentId, {
|
||||
await addChange(projectId, environmentId, {
|
||||
feature: featureId,
|
||||
action: 'addReleasePlan',
|
||||
payload: {
|
||||
@ -92,7 +92,7 @@ export const FeatureStrategyMenu = ({
|
||||
},
|
||||
});
|
||||
|
||||
refetchChangeRequests();
|
||||
await refetchChangeRequests();
|
||||
|
||||
setToastData({
|
||||
type: 'success',
|
||||
|
@ -124,7 +124,7 @@ export const ReleasePlan = ({
|
||||
);
|
||||
|
||||
const onAddRemovePlanChangesConfirm = async () => {
|
||||
addChange(projectId, environment, {
|
||||
await addChange(projectId, environment, {
|
||||
feature: featureName,
|
||||
action: 'deleteReleasePlan',
|
||||
payload: {
|
||||
@ -132,7 +132,7 @@ export const ReleasePlan = ({
|
||||
},
|
||||
});
|
||||
|
||||
refetchChangeRequests();
|
||||
await refetchChangeRequests();
|
||||
|
||||
setToastData({
|
||||
type: 'success',
|
||||
@ -143,7 +143,7 @@ export const ReleasePlan = ({
|
||||
};
|
||||
|
||||
const onAddStartMilestoneChangesConfirm = async () => {
|
||||
addChange(projectId, environment, {
|
||||
await addChange(projectId, environment, {
|
||||
feature: featureName,
|
||||
action: 'startMilestone',
|
||||
payload: {
|
||||
@ -152,7 +152,7 @@ export const ReleasePlan = ({
|
||||
},
|
||||
});
|
||||
|
||||
refetchChangeRequests();
|
||||
await refetchChangeRequests();
|
||||
|
||||
setToastData({
|
||||
type: 'success',
|
||||
|
Loading…
Reference in New Issue
Block a user