updates and removed on the dead codes
This commit is contained in:
@@ -164,38 +164,10 @@ const EditRider = () => {
|
||||
});
|
||||
};
|
||||
|
||||
// const fetchpartnerlist = async () => {
|
||||
// setLoading(true);
|
||||
// await axios
|
||||
// .get(`${process.env.REACT_APP_URL}/partners/getpartners`)
|
||||
// .then((res) => {
|
||||
// console.log('fetchpartnerlist', res);
|
||||
// // if (res.data.status) {
|
||||
// let arr = [];
|
||||
// res.data.details.map((val) => {
|
||||
// arr.push({
|
||||
// ...val,
|
||||
// label: val.partnername
|
||||
// });
|
||||
// });
|
||||
// setPartnerlist([...arr]);
|
||||
// console.log(arr);
|
||||
// // }
|
||||
// setLoading(false);
|
||||
// })
|
||||
// .catch((err) => {
|
||||
// console.log(err);
|
||||
// setLoading(false);
|
||||
// });
|
||||
// };
|
||||
// ==============================|| fetchAppLocations ||============================== //
|
||||
const fetchAppLocations = async () => {
|
||||
try {
|
||||
const locationRes = await axios.get(`${process.env.REACT_APP_URL}/partners/getlocations/?userid=${userid}`);
|
||||
// const updatedLocations = [
|
||||
// ...locationRes.data.details,
|
||||
// { locationname: 'All', applocationid: 0 } // Add your new object here
|
||||
// ];
|
||||
console.log('fetchAppLocations', locationRes.data.details);
|
||||
setPartnerlist(locationRes.data.details);
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user