Skip to content

Commit

Permalink
[fix] Don't show 0 when description is empty (#2913)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta authored Jan 13, 2025
1 parent cb5d4ed commit 49e7956
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/src/modals/cloud-components/cloud-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 49e7956

Please sign in to comment.