SJRK-461: Publishing an empty story re-directs to an error view page

Metadata

Source
SJRK-461
Type
Bug
Priority
Major
Status
Open
Resolution
N/A
Assignee
N/A
Reporter
Justin Obara
Created
2021-03-16T12:55:28.567-0400
Updated
2021-03-16T13:25:17.004-0400
Versions
  1. 0.5
Fixed Versions
N/A
Component
  1. Storytelling Tool UI

Description

Publishing a story that has not had any content or metadata added, appears to publish successfully, but since the localStorage ID was null, the author is redirected to the View page with a story ID of null afterwards. However, going to "Browse Stories" will show an empty story has in fact been published.

This is likely related to changes made for SJRK-452 which does not create an initial story until the content or metadata has been modified. When the the user gets to the preview screen there is still an option to publish. At this point the local storage hasn't been populated because there is no saved story, so no story id to redirect to. However, the publishing will create the new story.