From 36a472a5068f23def82e23ac8e9c0d5777470cf5 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sun, 13 Oct 2024 12:15:49 -0300 Subject: [PATCH] 'ref' might be undefined --- src/js/components/Select/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/components/Select/index.tsx b/src/js/components/Select/index.tsx index 336e6b4..643a3c0 100644 --- a/src/js/components/Select/index.tsx +++ b/src/js/components/Select/index.tsx @@ -41,7 +41,7 @@ function Select({ value, children: options, className }: Props) { e.stopPropagation(); const { ref } = n.props; setOpen(!isOpen); - ref.current?.click(); + ref?.current?.click(); }} > {n}