maryvilledev / codesplainUI

Web app for breaking down and annotating Python 3 source code.
https://www.codesplain.io
GNU General Public License v3.0
2 stars 2 forks source link

Selected organization is not reset when routed to new snippet view #529

Closed solkaz closed 7 years ago

solkaz commented 7 years ago

Expected Behavior

If I am viewing a snippet that belongs to an organization and then I click the title to create a new snippet, if I click "Save," it should save to my S3 bucket

Current Behavior

It saves to the organization's bucket

Browser

All

Steps to Reproduce (for bugs)

  1. View a Maryvilledev snippet
  2. Click the title in the CodesplainAppBar to create a new snippet
  3. Make your edits and then save it
  4. Notice that it will be saved to Maryvilledev, and not your own account

Possible Solution

The selectedOrg property needs to be reset when navigating away. We're not doing so currently