Added Emplyee Access missing names
This commit is contained in:
parent
b5ced8d15a
commit
cfabbe81f3
|
|
@ -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]);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue