diff --git a/src/components/global/Playground/index.tsx b/src/components/global/Playground/index.tsx index 9e01b1902bb..0681230b851 100644 --- a/src/components/global/Playground/index.tsx +++ b/src/components/global/Playground/index.tsx @@ -417,7 +417,7 @@ export default function Playground({ return null; } return ( - + {Object.keys(codeSnippets[usageTarget]).map((fileName) => ( { setLeftNavVisible(tabsNavEl.current?.scrollLeft > 40); setRightNavVisible(tabsNavEl.current?.scrollWidth > tabsNavEl.current?.offsetWidth); - }, []); + }, [groupId]); /** * If the selected value is not in the available tabs, fall back to the first tab.