RaspberryPiFoundation / editor-ui

Code Editor web component
https://editor-static.raspberrypi.org
Apache License 2.0
37 stars 8 forks source link

Reset openFiles when project is loaded/reloaded #946

Closed sra405 closed 4 months ago

sra405 commented 4 months ago

Currently there's an issue switching between projects. It's an edge case for logged in users toggling between multiple projects but currently the whole page breaks. Fix is to reset openFiles on project load and to be a little more defensive when loading project content.

https://github.com/RaspberryPiFoundation/editor-ui/assets/74183390/709c3e51-959d-48e8-884d-91717af2752a

github-actions[bot] commented 4 months ago
github-actions[bot] commented 4 months ago