mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-30 14:09:51 +01: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,
|
0,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!container.current) return;
|
||||||
|
container.current.scrollLeft = container.current.scrollWidth;
|
||||||
|
});
|
||||||
|
|
||||||
if (
|
if (
|
||||||
master.treeType !== 'researchable' ||
|
master.treeType !== 'researchable' ||
|
||||||
master.ancestors === undefined ||
|
master.ancestors === undefined ||
|
||||||
@@ -69,12 +74,6 @@ export function TechTreeSection() {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (!container.current) return;
|
|
||||||
|
|
||||||
container.current.scrollLeft = container.current.scrollWidth;
|
|
||||||
});
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex
|
<Flex
|
||||||
direction="column"
|
direction="column"
|
||||||
|
|||||||
Reference in new issue
Block a user