ushahidi / platform-client-mzima

Other
14 stars 99 forks source link

USH-1686 - Cutoff posts for empty images #1479

Closed ushahidlee closed 2 days ago

ushahidlee commented 2 days ago

Issue:

Posts that use the old image field, are cutoff when no image was uploaded.

Solution:

This PR adds some minor sanity checks to prevent this from happening.

Testing:

  1. Create a post in a survey that uses the old image field, but importantly this field cannot be the last one in the post. Make sure there are fields filled in after the image field and that the image field itself is empty (no file uploaded).
  2. Open the post in detail view.
  3. See that all fields are included in the view and the post is not cutoff.
linear[bot] commented 2 days ago

USH-1686 Post details are being cut off for some posts