fix(lint): use return undefined for consistent-return in useEffect
This commit is contained in:
1 parent
0e21656451
commit
293dee7b34
1 file changed
+1
-1
@@ -252,7 +252,7 @@ export const UrlPreviewHolder = as<'div'>(({ children, ...props }, ref) => {
|
||||
|
||||
useEffect(() => {
|
||||
const scroll = scrollRef.current;
|
||||
if (!scroll) return;
|
||||
if (!scroll) return undefined;
|
||||
|
||||
updateArrows();
|
||||
scroll.addEventListener('scroll', updateArrows, { passive: true });
|
||||
|
||||
Reference in new issue
Block a user