fix: Convert phase.id to Number for phaseChantierService.resume call
This commit is contained in:
@@ -231,7 +231,7 @@ const PhasesEnRetardPage: Page = () => {
|
|||||||
const relancerPhase = async (phase: PhaseChantier) => {
|
const relancerPhase = async (phase: PhaseChantier) => {
|
||||||
try {
|
try {
|
||||||
if (phase.id) {
|
if (phase.id) {
|
||||||
await phaseChantierService.resume(phase.id);
|
await phaseChantierService.resume(Number(phase.id));
|
||||||
await loadPhasesEnRetard();
|
await loadPhasesEnRetard();
|
||||||
toast.current?.show({
|
toast.current?.show({
|
||||||
severity: 'success',
|
severity: 'success',
|
||||||
|
|||||||
Reference in New Issue
Block a user