You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user creates a new post with a survey that includes an option to add an image, an unpleasant error message appears ("Error: Error updating caption: Cannot read properties of undefined (reading 'value'))" if the user submits a post with an image caption but without actually uploading an image. Furthermore, if the user removes the caption, the error persists. This can be confusing for users who forget to add an image.
To Reproduce
Log in to the application.
Click on the "New Post" button in the sidebar.
Choose a survey that includes an image input option.
Fill in all required inputs, including the image caption, but do not upload an image.
Click on the submit button.
Clear the image caption input.
Submit the form again.
Expected Behavior:
When a user fills in the image caption without uploading an image, a clear pop-up message should inform the user that an image is required.
When a user decides not to upload an image and removes the caption, any persisted error should disappear.
@Angamanga , could you kindly assist in adding the Outreachy Task Submission Label to this issue? I'm going to work on resolving it.
The text was updated successfully, but these errors were encountered:
RWUBAKWANAYO
changed the title
[Outreachy Task Submission] Error Message Persisting When Submitting New Post Without Image in Survey
[Outreachy Task Submission] Error message persisting when submitting new post without image
Mar 12, 2024
Description:
When a user creates a new post with a survey that includes an option to add an image, an unpleasant error message appears ("Error: Error updating caption: Cannot read properties of undefined (reading 'value'))" if the user submits a post with an image caption but without actually uploading an image. Furthermore, if the user removes the caption, the error persists. This can be confusing for users who forget to add an image.
To Reproduce
Expected Behavior:
Desktop Hardware Details
Additional context
screen-recording-2024-03-12-at-085509_hOws09PZ.mov
@Angamanga , could you kindly assist in adding the Outreachy Task Submission Label to this issue? I'm going to work on resolving it.
The text was updated successfully, but these errors were encountered: