NHMDenmark / Mass-Digitizer

Common repo for the DaSSCo team
Apache License 2.0
1 stars 0 forks source link

Can no longer add storage location #463

Closed FedorSteeman closed 6 months ago

FedorSteeman commented 6 months ago

Describe the bug Can no longer add storage location

To Reproduce Steps to reproduce the behavior:

  1. Start the digitization app
  2. Start entering a storage location and choose one from autosuggest
  3. An error message is shown

Expected behavior The storage location is selected, its name added to the input field and its full name including parentage to the adjacent label field.

Screenshots image

Please complete the following information:

Additional context The cause of the error lies the way the autosuggest logic is structured by intertwining both taxon name and storage location. The error occurs when table fields are attempted to be accessed that are specific to the taxon name, namely 'dwcid', 'dasscoid' (and possibly others as well). The logic needs to be restructured to avoid this situation.

FedorSteeman commented 6 months ago

Fixed and pushed to repo.