mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
fix: no return before useEffect
This commit is contained in:
1 parent
bac2f097f2
commit
8ca2315874
1 file changed
+5
-6
@@ -61,6 +61,11 @@ export function TechTreeSection() {
|
||||
0,
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (!container.current) return;
|
||||
container.current.scrollLeft = container.current.scrollWidth;
|
||||
});
|
||||
|
||||
if (
|
||||
master.treeType !== 'researchable' ||
|
||||
master.ancestors === undefined ||
|
||||
@@ -69,12 +74,6 @@ export function TechTreeSection() {
|
||||
return null;
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (!container.current) return;
|
||||
|
||||
container.current.scrollLeft = container.current.scrollWidth;
|
||||
});
|
||||
|
||||
return (
|
||||
<Flex
|
||||
direction="column"
|
||||
|
||||
Reference in new issue
Block a user