Fix rerender of sidebar when the details panel is opened.
Merge pull request #263 from huwshimi/details-deploy-error

The editorial was being rerendered when the details panel was opened or closed. Fixing that also required deselecting the charm when the panel is closed.