From 5874b3ad96bf1234bf2c238136b86a23f454e4c5 Mon Sep 17 00:00:00 2001 From: Leon <> Date: Sun, 3 Jul 2022 12:58:22 +0300 Subject: [PATCH] space --- .../components/EntryDetailed/EntryViewer/AutoRepresentation.tsx | 1 + 1 file changed, 1 insertion(+) 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