diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index a24ea735..22a0d3fc 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -672,9 +672,10 @@ async function toggleStatusProduct(id: string, status: Status) { } async function toggleStatusService(id: string, status: Status) { - await editService(id, { + const res = await editService(id, { status: status === 'INACTIVE' ? 'ACTIVE' : 'INACTIVE', }); + if (res) formDataProductService.value.status = res.status; await alternativeFetch(); flowStore.rotate(); @@ -4196,7 +4197,7 @@ watch(