@@ -25,17 +25,16 @@ import {container} from 'tsyringe';
25
25
import { CallingContainer } from 'Components/calling/CallingOverlayContainer' ;
26
26
import { GroupCreationModal } from 'Components/Modals/GroupCreation/GroupCreationModal' ;
27
27
import { LegalHoldModal } from 'Components/Modals/LegalHoldModal/LegalHoldModal' ;
28
+ import { PrimaryModalComponent } from 'Components/Modals/PrimaryModal/PrimaryModal' ;
28
29
import { registerReactComponent , useKoSubscribableChildren } from 'Util/ComponentUtil' ;
29
30
30
31
import { AppLock } from './AppLock' ;
31
32
import { LeftSidebar } from './LeftSidebar' ;
32
33
import { MainContent } from './MainContent' ;
33
- import { RightSidebar } from './RightSidebar' ;
34
- import { PanelEntity , PanelState } from './RightSidebar/RightSidebar' ;
34
+ import { PanelEntity , PanelState , RightSidebar } from './RightSidebar' ;
35
35
import { RootProvider } from './RootProvider' ;
36
36
import { useAppMainState , ViewType } from './state' ;
37
37
38
- import { PrimaryModalComponent } from '../components/Modals/PrimaryModal/PrimaryModal' ;
39
38
import { User } from '../entity/User' ;
40
39
import { TeamState } from '../team/TeamState' ;
41
40
import { UserState } from '../user/UserState' ;
@@ -63,13 +62,9 @@ const AppContainer: FC<AppContainerProps> = ({root}) => {
63
62
const currentState = history . at ( - 1 ) ;
64
63
65
64
const toggleRightSidebar = ( panelState : PanelState , params : RightSidebarParams ) => {
66
- const newParamId = params . entity ?. id ;
67
- const currentParamId = currentEntity ?. id ;
68
-
69
65
const isDifferentState = currentState !== panelState ;
70
- const isDifferentParams = newParamId !== currentParamId ;
71
66
72
- if ( isDifferentState || isDifferentParams ) {
67
+ if ( isDifferentState ) {
73
68
goTo ( panelState , params ) ;
74
69
75
70
return ;
0 commit comments