Ideally FacetDialog should be able to pass it its handleError which is currently unused. SchemaSelector could then call this as required.
Additional context
The fall out of this is pretty minor. Basically the user would see nothing happen, and the browser console.log would have an error message. Also, the likelihood of errors is very low - and more so would be due to network issues which would trigger earlier errors.
Is your feature request related to a problem? Please describe.
On browsing the code I've noticed SchemaSelector still needs some basic error handling added. For example, in the async call to get the list of schemas, there's no
.catch
. See https://github.com/openequella/openEQUELLA/blob/develop/Source/Plugins/Core/com.equella.core/js/tsrc/settings/SchemaSelector.tsx#L58Describe the solution you'd like
Ideally
FacetDialog
should be able to pass it itshandleError
which is currently unused.SchemaSelector
could then call this as required.Additional context
The fall out of this is pretty minor. Basically the user would see nothing happen, and the browser console.log would have an error message. Also, the likelihood of errors is very low - and more so would be due to network issues which would trigger earlier errors.