Closed helen-m-lin closed 6 months ago
1 - Catch error and display message 2 - If the schemas are really old, we can consider adding a filter to filter out versions less than a number 3 - Try to understand where this error is coming from
I tested all schemas/versions and found the following errors causing app crashes:
Error: Could not find a definition for #/$defs/Neurophotometrics
Error: Could not find a definition for #/$defs/Abcam.
Error: Could not find a definition for #/$defs/SizeUnit.
Cause: Unhandled errors were caused by incorrect state handling in the RenderForm
component.
Describe the bug Certain older schemas do not render and cause app to crash with errors. Schema versions that cause errors:
Error: Could not find a definition for #/$defs/Abcam.
Error: Could not find a definition for #/$defs/SizeUnit.
To Reproduce Steps to reproduce the behavior:
Expected behavior The selected schema and version should render.
Screenshots![image](https://github.com/AllenNeuralDynamics/aind-metadata-entry-js/assets/46795546/e88f6288-60ac-4c93-b2bd-792470a792a0)
Desktop (please complete the following information):
Additional context Add any other context about the problem here.