Skip to content

Commit a63aae0

Browse files
committed
Fix placeholder icon display in GraphGridItem
Fix placeholder icons in GraphGridItem to match CustomNameCellRenderer pattern
1 parent bd91a22 commit a63aae0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/Recent/GraphGridItem.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ export const GraphGridItem = ({ id, Caption, ContextData, Description, DateModif
1313
};
1414

1515
// Use placeholder if Thumbnail is empty, null, undefined, or the default img
16-
const hasCustomThumbnail = Thumbnail && Thumbnail !== img && Thumbnail.trim() !== '';
17-
const imageSrc = hasCustomThumbnail ? Thumbnail : getPlaceholderImage(ContextData);
16+
const thumbnail = Thumbnail;
17+
const hasCustomThumbnail = thumbnail && thumbnail !== img && thumbnail.trim() !== '';
18+
const imageSrc = hasCustomThumbnail ? thumbnail : getPlaceholderImage(ContextData);
1819

1920
return (
2021
<CardItem

0 commit comments

Comments
 (0)