🔧 Fixed the tab-switching bug
This commit is contained in:
@@ -12,7 +12,7 @@ export const TabControls = (props): ReactElement => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log("changed");
|
console.log("changed");
|
||||||
setActive(filteredTabs[0].id);
|
setActive(filteredTabs[0].id);
|
||||||
}, [filteredTabs[0]]);
|
}, [comicBookDetailData]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user