I have deployed my admin panel to render but haveing issue in moblie device

this is my code to fetch the item details

its working fine in desktop and i can see the list

but in my mobile phone Error fetching list is coming as toast

const fetchList = async () => {
try {
const response = await axios.get(${url}/api/food/list);
console.log(response.data);
if (response.data.success) {
setList(response.data.data);
console.log(response.data.data);
} else {
toast.error(“Error”);
}
} catch (error) {
toast.error(“Error fetching list”);
// toast.error(response);
console.log(error);
}
};

can some one let me know what is the issue nad how to fix this

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.