Answer the question
In order to leave comments, you need to log in
Unhandled Rejection (Error): [object Object] from Webpack in React?
After executing this function:
async addApp(){
this.setState(produce(draft => {
draft.preview.button.loading = true;
}))
let apps;
await apiCall('me').then(res => {
apps = res.data.preferences.apps + (res.data.preferences.apps === '' ? '' : ';') + this.state.preview.appId;
})
await apiCall('apps/setapps',{apps}).then(res => {
this.getPreview(this.state.preview.appId)
}).catch(err => {
console.log(err)
})
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question