From ef699e83faddad07ce691b7c7cc61d616c86c667 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 4 Mar 2026 19:13:48 +0530 Subject: [PATCH] turbo add fix --- src/Pages/Product/Utils/DefaultSettingPopover.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Pages/Product/Utils/DefaultSettingPopover.jsx b/src/Pages/Product/Utils/DefaultSettingPopover.jsx index 34801b6..f99ee42 100644 --- a/src/Pages/Product/Utils/DefaultSettingPopover.jsx +++ b/src/Pages/Product/Utils/DefaultSettingPopover.jsx @@ -14,7 +14,7 @@ const DefaultSettingPopover = memo(({ field, options, onSubmit, currentDefault, const [applyToAll, setApplyToAll] = useState(false); const [open, setOpen] = useState(false); const [fetchSubCategoriesData, setFetchSubCategoriesData] = useState(false); - console.log(Component, "showField") + console.log(fetchSubCategoriesData, "fetchSubCategoriesData") useEffect(() => { if (open) { setSelectedValue(currentDefault); @@ -25,7 +25,9 @@ const DefaultSettingPopover = memo(({ field, options, onSubmit, currentDefault, useEffect(() => { const fetchAllSubCategories = async () => { + await (dispatch(getActiveProdSubCatData({ AppId: getSession('AppId') })))?.unwrap(); + setFetchSubCategoriesData(false); } if (fetchSubCategoriesData) {