Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[fix] Don't show 0 when description is empty (#2913)
Igor Dykhta49e7956e81b5
diff --git a/src/components/src/modals/cloud-components/cloud-item.tsx b/src/components/src/modals/cloud-components/cloud-item.tsxindex 1a8d14935..ac86b1725 100644--- a/src/components/src/modals/cloud-components/cloud-item.tsx+++ b/src/components/src/modals/cloud-components/cloud-item.tsx@@ -124,7 +124,9 @@ export const CloudItem = ({vis, onClick}) => {</MapIcon>)}<span className="vis_item-title">{vis.title}</span>- {vis.description?.length && <span className="vis_item-description">{vis.description}</span>}+ {vis.description?.length > 0 && (+ <span className="vis_item-description">{vis.description}</span>+ )}<span className="vis_item-modification-date">Last modified {moment.utc(vis.updatedAt).fromNow()}</span>