on3iro / aeons-end-randomizer

🧙🏻‍♀️Awesome Companion App for Aeons End: https://aeons-end-randomizer.de 🧙🏽‍♂️
MIT License
43 stars 25 forks source link

Expedition import not working when supply setup does not exist #364

Closed jannydiamond closed 4 years ago

jannydiamond commented 4 years ago

Describe the bug When importing an expedition JSON in which a supply setup is configured, that doesn't exist in the Randomizer, then the app throws an error in the MarketSelect Component. The name of the selected setup could not be found.

To Reproduce Steps to reproduce the behavior:

  1. Create an expedition JSON with a supply setup that does not exist yet
  2. Go to 'expeditions'
  3. Click on 'Start new expedition' and then on 'Import'
  4. Choose file expedition JSON
  5. Click 'Import' button
  6. See error

Expected behavior Maybe a new supply setup should be created or the MarketSelect should not only consider existing Supply Setups.

Desktop (please complete the following information):

Additional context It works fine, when the suppy setup exists in the Randomizer.