Added Emplyee Access missing names

This commit is contained in:
Srinath 2026-01-29 09:33:27 +05:30
parent b5ced8d15a
commit cfabbe81f3
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ const colorText = 'Color : Red';
const ProductList = () => {
const { SadminuserAccess } = useAuth();
let SAAccessCommonMaster = SadminuserAccess?.find(
(e) => e?.MenuName === 'Product'
(e) => e?.MenuName === 'Add Product'
);
const formRef = useRef();
// const ref1 = useRef(null);
@ -1708,7 +1708,7 @@ const ProductList = () => {
};
let response = await dispatch(getEmpAccess(data)).unwrap();
let datas = response?.data?.data?.[0]?.EmpAccessDetails?.filter(
(item) => item.ConfigName === 'Product'
(item) => item.ConfigName === 'Add Product'
);
setEmpData(datas?.[0]);
};