Skip to content

Commit 20ecdb4

Browse files
committed
fix: Set default width and height for URLIcon component in case container style results in NaN
1 parent 8fd0fcb commit 20ecdb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/components/Endpoints/URLIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export const URLIcon = memo(
5555
onError={handleImageError}
5656
loading="lazy"
5757
decoding="async"
58-
width={Number(containerStyle.width)}
59-
height={Number(containerStyle.height)}
58+
width={Number(containerStyle.width) || 20}
59+
height={Number(containerStyle.height) || 20}
6060
/>
6161
</div>
6262
);

0 commit comments

Comments
 (0)