New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Red overlay on return from validation errors #3767
Comments
As I said, I've gotten varying results from steps similar to the following, but right now steps to reproduce are: Actual results: A red overlay screen saying 'Uncaught runtime errors' - see the screenshot. Underneath the overlay you do get the expected temporary 'date_return_expected: or gift status is required' validation error at the bottom of the screen. Expected results: No red overlay and no 'Uncaught (in promise)' errors. |
If I add a
|
(I'll say something about what I was seeing earlier; it's just been confusing to me - it's different behavior than what I describe above - but maybe someone more knowledgeable will be able to make sense of it, or if the STR above don't work maybe these will. I was setting out to update one of the validation functions for the Loan model here: Lines 263 to 265 in 2262c10
is_gift.nil? to is_gift.blank? but that change was producing red overlays where the original code was not. Any other change I made to the validation function, even just removing the if all together, would produce a red overlay, and then when I changed the source back to the original the red overlay would go away. Maybe I was just missing something though!)
|
You can also get a red overlay screen and 'Uncaught (in promise)' from a validation error by going to the New Namespace task and clicking |
@kleintom both overlay messages should be fixed now. Also now you should see a more informative message about the error and not "[Object object]" Reopen if you still getting the same error |
Thanks @jlpereira! |
Steps to reproduce the bug
Screenshot
Expected behavior
No response
Additional Screenshots
No response
Environment
Development (docker)
Sandbox Used
No response
Version
2262c10
Browser Used
firefox and chrome
The text was updated successfully, but these errors were encountered: