Closed justmealf closed 1 year ago
Hi, i want to generate dropdown from axios but it wont generate it was same as #6 example returning value and label, but it wont generate
axios.get() ........ .then((response) => { console.log(response); console.log(response.data); return response.data.map((item) => { return { value: item.name, label: item.label}; }) }) .catch((error) => { console.log(error) });
Please create a reproduction then reopen.
Hi, i want to generate dropdown from axios but it wont generate it was same as #6 example returning value and label, but it wont generate
axios.get() ........ .then((response) => { console.log(response); console.log(response.data); return response.data.map((item) => { return { value: item.name, label: item.label}; }) }) .catch((error) => { console.log(error) });