Skip to content

Commit 672f967

Browse files
alexeymoskalev-devopshisco
authored andcommitted
fix(drain-plan): drop the plan mutation's toast metadata
The drain dialog is the only caller and shows a failed plan inline while keeping Drain disabled; the global mutation toast reported the same failure a second time on every unsuccessful refetch.
1 parent ee582af commit 672f967

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎web/src/api/client.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5062,10 +5062,9 @@ export function useDrainPlan() {
50625062
}
50635063
return response.json();
50645064
},
5065-
meta: {
5066-
errorMessage: "Failed to compute drain plan",
5067-
// No successMessage: a plan is a preview the dialog renders, not an action to confirm.
5068-
},
5065+
// Deliberately no meta toast keys: the plan is fetched only from the drain dialog, which
5066+
// renders a failure inline and keeps Drain disabled while it shows; a global toast would
5067+
// report the same failure twice.
50695068
});
50705069
}
50715070

0 commit comments

Comments
 (0)