With the changes for #746, setMostRecentProgram will update the URL to /editor/:newMostRecentProgram but this is undesirable from the sketches page.
Remove the mostRecentProgram accounting from the sketch deletion modal and do that work in the /editor path of the router.
This is also more resilient to other ways that mostRecentProgram could get corrupted, besides sketch deletion.
With the changes for #746,
setMostRecentProgram
will update the URL to/editor/:newMostRecentProgram
but this is undesirable from the sketches page. Remove themostRecentProgram
accounting from the sketch deletion modal and do that work in the /editor path of the router. This is also more resilient to other ways thatmostRecentProgram
could get corrupted, besides sketch deletion.