From 20ecdb4881fee1949e921f3cb3c96237acd64b42 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Thu, 3 Apr 2025 15:56:51 -0400 Subject: [PATCH] fix: Set default width and height for URLIcon component in case container style results in NaN --- client/src/components/Endpoints/URLIcon.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/Endpoints/URLIcon.tsx b/client/src/components/Endpoints/URLIcon.tsx index ab22635809..7419bde8fc 100644 --- a/client/src/components/Endpoints/URLIcon.tsx +++ b/client/src/components/Endpoints/URLIcon.tsx @@ -55,8 +55,8 @@ export const URLIcon = memo( onError={handleImageError} loading="lazy" decoding="async" - width={Number(containerStyle.width)} - height={Number(containerStyle.height)} + width={Number(containerStyle.width) || 20} + height={Number(containerStyle.height) || 20} /> );