michealengland/timeline-app

Delete functionality not removing post from timelines correctly

Closed this issue · 0 comments

Originally posts were only associated with a single timeline. This meant that posts associated with more than one timeline would only be removed from a single timeline. Also, the prop was pointing to an undefined value, since timeline was renamed to `timelines.

To fix this, we should delete the postKey from each timeline that the post is associated with.