Roadmap or Playlist without items return list with one empty object
Summary
Getting a playlist or roadmap that has no items returns a list with one empty object in it
Steps to reproduce
Get a playlist or roadmap that has no items
Example Project
What is the current bug behavior?
playlistItems = [{}] OR roadmapItems = [{}]
are returned upon requesting a roadmap or playlist
What is the expected correct behavior?
playlistItems = [] OR roadmapItems = []
OR
Just no roadmaps or playlists that have no items
Relevant logs and/or screenshots
Possible fixes
Make it impossible to create a roadmap or playlist without items OR Check if items are empty and remove the empty object if so
Edited by Luca Bergman