diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue index d631d08c..0e10147c 100644 --- a/src/pages/04_product-service/MainPage.vue +++ b/src/pages/04_product-service/MainPage.vue @@ -469,7 +469,7 @@ async function toggleStatusProduct(id: string, status: Status) { status: status === 'INACTIVE' ? 'ACTIVE' : 'INACTIVE', }); - await fetchListOfProduct(); + await alternativeFetch(); flowStore.rotate(); } @@ -478,7 +478,7 @@ async function toggleStatusService(id: string, status: Status) { status: status === 'INACTIVE' ? 'ACTIVE' : 'INACTIVE', }); - await fetchListOfService(); + await alternativeFetch(); flowStore.rotate(); } async function toggleStatusType(id: string, status: Status) { @@ -973,6 +973,11 @@ async function fetchStatus() { } async function alternativeFetch() { + + +console.log('asdasds'); + + if (productAndServiceTab.value === 'all') { await fetchListOfProductAndService(); flowStore.rotate();