Data error
i have this mutation
mutate(
{
resource:
values: {
description: values.description,
hours: values.hours,
date: values.date,
project: values.project,
},
dataProviderName: "taskTraker"
},
{
onError: (error, variables, context) => {
// An error occurred!
console.log(error);
console.log("stop 1");
},
onSuccess: (data, variables, context) => {
// Let's celebrate!
console.log("Let's celebrate! 2");
},
}
);
and i have this error:Cannot read properties of undefined (reading 'data')
what can i do?
mutate(
{
resource:
/${API_ROUTES.USERS.USERLIST}/${id},values: {
description: values.description,
hours: values.hours,
date: values.date,
project: values.project,
},
dataProviderName: "taskTraker"
},
{
onError: (error, variables, context) => {
// An error occurred!
console.log(error);
console.log("stop 1");
},
onSuccess: (data, variables, context) => {
// Let's celebrate!
console.log("Let's celebrate! 2");
},
}
);
and i have this error:Cannot read properties of undefined (reading 'data')
what can i do?
