andersganander / albumtalk

Front End for pp5 project Album Talk
0 stars 0 forks source link

Fix album.results array is empty when fetching albums from the api #39

Closed andersganander closed 4 months ago

andersganander commented 4 months ago

The reason was that APIView was used to create the album list in the API and not the generics.ListCreateAPIView. The solution was to remove result in the AlbumsPage component and just use albums.