Hi !
I'm trying to implement a
apexchart
onBeforeMount(async () => {
const cats = await GetRemovalReasons().then(({data}) => data).catch(e => []);
categories.value.splice(0, categories.value.length, ...cats);
Object.assign(chart.value, chartOptions(categories.value));
});
Please ignore this message...
Hi Vahan,
Your issue seems to be that you're using both await
and .then()
together. You should choose either async/await or .then() to handle the result of the promise.
Regards,
Lauris Stepanovs,
Keenthemes Support Team