QutEcoacoustics / workbench-client

workbench-client: a client side browser application for interacting with acoustic workbenches
Other
8 stars 1 forks source link

Creating new harvest causes title component to query uninitialised attributes #2000

Closed hudson-newey closed 1 year ago

hudson-newey commented 2 years ago

Describe the bug The Harvest title component now requires a Harvest model in order to operate. However, when a user creates a new Harvest, I suspect this model isn't generated until they proceed with the "Start streaming upload" or "Upload batch" buttons. This causes the browser console to throw the JS runtime error seen bellow.

To Reproduce Steps to reproduce the behavior:

  1. Go to "Projects"
  2. Click on a project
  3. Click on "New Upload"
  4. Open Browser Developer Tools
  5. Observe the error described above

Expected behaviour There should be no browser

Screenshots image

Desktop (please complete the following information):

Additional context
This is a regression bug from #1999
This does not prevent a user from creating a Harvest

atruskie commented 2 years ago

Well spotted