metacatui icon indicating copy to clipboard operation
metacatui copied to clipboard

Properly handle errors in Map-Search.js

Open yvonnesjy opened this issue 1 year ago • 0 comments

Describe the bug Errors in Map-Search.js is not handled gracefully and crashes the whole page.

To Reproduce Steps to reproduce the behavior:

  1. Go to Map-Search.js
  2. Throws an error, say, in connect()
  3. Visit ADC from local MetacatUI
  4. See error

Expected behavior As discussed here, map search shouldn't crash the whole page. Instead, grey out the checkbox and show an error message on hover.

Screenshots image

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome
  • Version: 122.0.6261.94

yvonnesjy avatar Mar 05 '24 02:03 yvonnesjy