beets icon indicating copy to clipboard operation
beets copied to clipboard

Attempting to open the Sequencer in a Track with a deleted file throws an error/white screen

Open brandongregoryscott opened this issue 2 years ago • 0 comments

Steps to reproduce:

  1. Create a new Track with at least one step.
  2. Save the project.
  3. Go to the library and delete the file associated with that step.
  4. Go back to the workstation and attempt to open the Sequencer for the Track Section that had the step.

The screen will go white and errors in the console will read:

react-dom.production.min.js:127 Uncaught TypeError: Cannot read properties of undefined (reading 'name')
    at wa (sequencer-step-row.tsx:53:52)
    at ha (react-dom.production.min.js:166:137)
    at cs (react-dom.production.min.js:289:386)
    at oc (react-dom.production.min.js:279:379)
    at rc (react-dom.production.min.js:279:310)
    at nc (react-dom.production.min.js:279:170)
    at Hs (react-dom.production.min.js:270:443)
    at Ks (react-dom.production.min.js:272:300)
    at Mi (react-dom.production.min.js:127:105)
    at react-dom.production.min.js:267:269

Not sure what the best course of action is here (you should realistically be able to replace the steps with a separate file/sample), but it at least shouldn't blow up if the file can't be found!

brandongregoryscott avatar Apr 15 '22 03:04 brandongregoryscott