Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Commit 23bea25

Browse files
chore: remove unwanted conditionals (#92)
* chore: remove unwanted conditions * chore: remove unwanted ref check
1 parent 2931d4b commit 23bea25

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/playground/components/RuleItem.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ export default function RuleItem({ children }) {
44
const ref = useRef();
55

66
useEffect(() => {
7-
if (ref.current) {
8-
ref.current.scrollIntoView({ behavior: "smooth", block: "end" });
9-
ref.current.children[1].focus();
10-
}
7+
ref.current.scrollIntoView({ behavior: "smooth", block: "end" });
8+
ref.current.children[1].focus();
119
}, []);
1210

1311
return (

src/playground/components/ThemeSwitcher.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)