File tree 2 files changed +11
-3
lines changed
client/packages/lowcoder/src
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,10 @@ export function Layout(props: LayoutProps) {
111
111
placement = "right"
112
112
closable = { true }
113
113
onClose = { toggleDrawer }
114
- visible = { drawerVisible }
115
- bodyStyle = { { padding : "0px" } }
114
+ open = { drawerVisible }
115
+ styles = { {
116
+ body : { padding : "0px" }
117
+ } }
116
118
destroyOnClose // Ensure drawer content is removed when closed
117
119
>
118
120
< DrawerContentWrapper >
Original file line number Diff line number Diff line change @@ -104,9 +104,15 @@ export default function ApplicationHome() {
104
104
if ( user . currentOrgId ) {
105
105
dispatch ( fetchDeploymentIdAction ( ) ) ;
106
106
}
107
- dispatch ( fetchHomeData ( { } ) ) ;
108
107
} , [ user . currentOrgId ] ) ;
109
108
109
+ useEffect ( ( ) => {
110
+ // tricky check, will be called for anonymous user to redirect to login page
111
+ if ( user . isAnonymous ) {
112
+ dispatch ( fetchHomeData ( { } ) ) ;
113
+ }
114
+ } , [ user . isAnonymous ] )
115
+
110
116
useEffect ( ( ) => {
111
117
if ( Boolean ( deploymentId ) ) {
112
118
dispatch ( fetchSubscriptionsAction ( ) )
You can’t perform that action at this time.
0 commit comments