I'm using your starter pack for my app.
// Fetch the tasks of `workflowDescription` from DB
const fetchWorkflowTasks = async () => {
return new Promise(function (resolve, reject) {
props.api.post({
url: '/fetchWorkflowTasks',
body: {
workflowDescription: props.workloadDetails.Description,
}
}, (res) => {
if (res.tasks) {
handleWorkflowTasks(res.tasks);
resolve(res.tasks);
}
}, (err, resp) => {
reject('Oops! Couldn\'t fetch tasks from DB.');
});
});
}
If I disable strict mode, there is no issue. I'm not sure what's the issue and how to debug!?
Could you please guide me on this? Thanks.