Closed elie222 closed 4 years ago
Managed to find the issue 😂
I had added this to my code during experimentation:
fields: [
{
field: "cohorts",
type: "[String]",
get: student => {
return student.firstName + " " + student.lastName;
}
}
],
The cohorts
field must have conflicted.
In my student model I have:
In my cohort model I have:
Viewing students in the cohort views works fine. Viewing cohorts in the student view throws an error. Specifically count endpoint has an issue because
association
is undefined here:Expected behavior
Should load many to many relation data.
Actual behavior
Forest Admin shows the following error message:
Failure Logs
Context