From ed22a45068ea7f21d8d887e70cfc7ca02ac0a4ce Mon Sep 17 00:00:00 2001 From: Myriam MIRA Date: Mon, 4 Nov 2024 12:28:33 +0100 Subject: [PATCH] fix: undefined error --- src/components/form/uploader/Uploader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/form/uploader/Uploader.tsx b/src/components/form/uploader/Uploader.tsx index b49b92f2..172acef6 100644 --- a/src/components/form/uploader/Uploader.tsx +++ b/src/components/form/uploader/Uploader.tsx @@ -94,7 +94,7 @@ const Uploader: React.FC = ({ const isImageUploader = !multiple && value && !Array.isArray(value) - ? value.type.includes('image') + ? value?.type?.includes('image') : false React.useEffect(() => {