Currently, it's not possible to create a Story without selecting at least one Place and at least one Speaker.
However, it is possible to delete Places and Speakers, which if done can leave a Story "orphaned" (e.g. it exists but has no Places, or Speakers, or both).
It's fine to keep it this way on the Rails side for now -- we need to think about our data structures more -- but we should handle this on the React side.
What is happening now is that the stories will still show up in StoryList. Only, if there are no Speakers, nothing will show at the top, and (worse) if there are no Places, clicking on the card does nothing.
Let's filter out any stories that have 0 Places or 0 Speakers on the React front end. This also means we should filter out any markers on the map that ONLY have stories that have been filtered out.
Acceptance criteria:
Currently, it's not possible to create a Story without selecting at least one Place and at least one Speaker.
However, it is possible to delete Places and Speakers, which if done can leave a Story "orphaned" (e.g. it exists but has no Places, or Speakers, or both).
It's fine to keep it this way on the Rails side for now -- we need to think about our data structures more -- but we should handle this on the React side.
What is happening now is that the stories will still show up in StoryList. Only, if there are no Speakers, nothing will show at the top, and (worse) if there are no Places, clicking on the card does nothing.
Let's filter out any stories that have 0 Places or 0 Speakers on the React front end. This also means we should filter out any markers on the map that ONLY have stories that have been filtered out.
Acceptance criteria: