From 302ddebfe530a4aed3f21abfbecddc6d97845320 Mon Sep 17 00:00:00 2001 From: Malini Date: Tue, 3 Mar 2026 10:39:04 +0530 Subject: [PATCH] Auto save fixed --- .../src/components/common/CustomToast.jsx | 6 +-- .../components/dashboard/SurveyCarousel.jsx | 2 + .../survey/ProductData/ProductData.jsx | 51 ++++++++++++++----- 3 files changed, 42 insertions(+), 17 deletions(-) diff --git a/ipi-survey-platform/src/components/common/CustomToast.jsx b/ipi-survey-platform/src/components/common/CustomToast.jsx index 0fa0835..a2c12b6 100644 --- a/ipi-survey-platform/src/components/common/CustomToast.jsx +++ b/ipi-survey-platform/src/components/common/CustomToast.jsx @@ -15,13 +15,13 @@ const CustomToast = ({ message, type = 'success', onClose, duration = 4000 }) => return (
- +
{message}
- )}
@@ -3204,7 +3218,6 @@ useEffect(() => { {productsError &&

{productsError}

} {unitsError &&

{unitsError}

} {formErrors['draft_general'] &&

{formErrors['draft_general']}

} - {formErrors['products_general'] &&

{formErrors['products_general']}

}
)}
@@ -3287,6 +3300,16 @@ useEffect(() => { )} + + {/* Validation Error Toast */} + {showValidationErrorToast && ( + setShowValidationErrorToast(false)} + duration={5000} + /> + )} ); };