diff --git a/web/app/components/base/switch/index.tsx b/web/app/components/base/switch/index.tsx index fdc03be4d6..1faf7c504a 100644 --- a/web/app/components/base/switch/index.tsx +++ b/web/app/components/base/switch/index.tsx @@ -20,7 +20,7 @@ const Switch = ( disabled = false, className, }: SwitchProps & { - ref: React.RefObject; + ref?: React.RefObject; }, ) => { const [enabled, setEnabled] = useState(defaultValue)