File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
client/packages/lowcoder/src Expand file tree Collapse file tree 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) {
111111 placement = "right"
112112 closable = { true }
113113 onClose = { toggleDrawer }
114- visible = { drawerVisible }
115- bodyStyle = { { padding : "0px" } }
114+ open = { drawerVisible }
115+ styles = { {
116+ body : { padding : "0px" }
117+ } }
116118 destroyOnClose // Ensure drawer content is removed when closed
117119 >
118120 < DrawerContentWrapper >
Original file line number Diff line number Diff line change @@ -104,9 +104,15 @@ export default function ApplicationHome() {
104104 if ( user . currentOrgId ) {
105105 dispatch ( fetchDeploymentIdAction ( ) ) ;
106106 }
107- dispatch ( fetchHomeData ( { } ) ) ;
108107 } , [ user . currentOrgId ] ) ;
109108
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+
110116 useEffect ( ( ) => {
111117 if ( Boolean ( deploymentId ) ) {
112118 dispatch ( fetchSubscriptionsAction ( ) )
You can’t perform that action at this time.
0 commit comments