appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.63k stars 3.74k forks source link

[Bug]: Table Widget - Invalid Image error on all rows, when one row is missing a value. #29662

Open GreenFlux opened 11 months ago

GreenFlux commented 11 months ago

Is there an existing issue for this?

Description

The table widget stops displaying all images when any one image is missing in the dataset, and the image is at a nested path of that row. Adding a ? for optional chaining resolved the issue, but many users do not know to do this.

Can we only show the invalid image on the individual row(s) that have an invalid path, instead of breaking all images that were working before one empty row was added?

Only one row is missing an image in this example, but it breaks all the other images that would otherwise work. 2023-12-15 08 22 10

Steps To Reproduce

  1. Connect a datasource like Baserow or Airtable, which stores files as an array of objects with a url property. Use a dataset where all rows have at least one image.
  2. Set the column type to image, and change the binding to display the url
  3. See that all the images display.
  4. Add a row with no file
  5. See that all rows stop displaying images

Public Sample App

No response

Environment

Production

Issue video log

No response

Version

Appsmith v1.9.57-SNAPSHOT

SaiCharanChetpelly31 commented 3 months ago

Trying to reproduce the issue.

ALOK9442 commented 4 weeks ago

hey @Nikhil-Nandagopal I would like to work on it, could you please assign it to me?