Fix activity editor (#9165)

This commit is contained in:
Charles Bochet
2024-12-20 11:52:00 +01:00
committed by GitHub
parent 0d2bfad3c9
commit f499c728fd
5 changed files with 88 additions and 126 deletions

View File

@ -65,7 +65,7 @@ export const ShowPageSubContainer = ({
isNewRightDrawerItemLoading = false,
}: ShowPageSubContainerProps) => {
const { activeTabId } = useTabList(
`${TAB_LIST_COMPONENT_ID}-${isInRightDrawer}`,
`${TAB_LIST_COMPONENT_ID}-${isInRightDrawer}-${targetableObject.id}`,
);
const isMobile = useIsMobile();
@ -128,7 +128,7 @@ export const ShowPageSubContainer = ({
<TabList
behaveAsLinks={!isInRightDrawer}
loading={loading || isNewViewableRecordLoading}
tabListInstanceId={`${TAB_LIST_COMPONENT_ID}-${isInRightDrawer}`}
tabListInstanceId={`${TAB_LIST_COMPONENT_ID}-${isInRightDrawer}-${targetableObject.id}`}
tabs={tabs}
/>
</StyledTabListContainer>