0👍
It seems the SchoolList
component requires an array, so you can simply change the line
this.schools = response.data
to
this.schools = response.data.hit
Although, this depends on how the component is built.
Source:stackexchange.com
0👍
It seems the SchoolList
component requires an array, so you can simply change the line
this.schools = response.data
to
this.schools = response.data.hit
Although, this depends on how the component is built.