Added Emplyee Access missing names
This commit is contained in:
parent
8959025a31
commit
b5ced8d15a
|
|
@ -156,7 +156,7 @@ const BarcodeTemplateSetup = () => {
|
|||
|
||||
const { SadminuserAccess } = useAuth();
|
||||
const SAAccessCommonMaster = SadminuserAccess?.find(
|
||||
(e) => e?.MenuName === 'Barcode / Qr Setup'
|
||||
(e) => e?.MenuName === 'Barcode / QR'
|
||||
);
|
||||
// useDispatch
|
||||
const dispatch = useDispatch();
|
||||
|
|
@ -335,7 +335,7 @@ const BarcodeTemplateSetup = () => {
|
|||
};
|
||||
let response = await dispatch(getEmpAccess(data)).unwrap();
|
||||
let datas = response?.data?.data?.[0]?.EmpAccessDetails?.filter(
|
||||
(item) => item.ConfigName === 'Barcode / Qr Setup'
|
||||
(item) => item.ConfigName === 'Barcode / QR'
|
||||
);
|
||||
setEmpData(datas?.[0]);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue