diff --git a/ui-common/src/components/EntryDetailed/EntryViewer/AutoRepresentation.tsx b/ui-common/src/components/EntryDetailed/EntryViewer/AutoRepresentation.tsx index 8514554e2..546d857e6 100644 --- a/ui-common/src/components/EntryDetailed/EntryViewer/AutoRepresentation.tsx +++ b/ui-common/src/components/EntryDetailed/EntryViewer/AutoRepresentation.tsx @@ -30,6 +30,7 @@ export const AutoRepresentation: React.FC = ({ representation, color, defau } ]; const [currentTab, setCurrentTab] = useState(TABS[0].tab); + useEffect(() => { setCurrentTab(TABS[tabSelectedRef.current].tab) // eslint-disable-next-line react-hooks/exhaustive-deps