Skip to content

Commit 7edab32

Browse files
authored
Fix imageUrl condition check in DiscourseNodeUtil to ensure proper boolean comparison (#525)
1 parent d803704 commit 7edab32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/roam/src/components/canvas/DiscourseNodeUtil.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ export class BaseDiscourseNodeUtil extends ShapeUtil<DiscourseNodeShape> {
544544
title="Open in sidebar (Shift+Click)"
545545
/>
546546

547-
{shape.props.imageUrl && isKeyImage ? (
547+
{shape.props.imageUrl && isKeyImage === "true" ? (
548548
<img
549549
src={shape.props.imageUrl}
550550
className="h-auto w-full object-cover"

0 commit comments

Comments
 (0)