File tree 1 file changed +4
-4
lines changed
client/packages/lowcoder/src/comps/hooks
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,7 @@ import { saveDataAsFile } from "../../util/fileUtils";
7
7
import { openApp , recordToSearchStr } from "../../util/appUtils" ;
8
8
import { trans } from "i18n" ;
9
9
import { logoutAction } from "redux/reduxActions/userActions" ;
10
- import { useDispatch } from "react-redux" ;
11
- import { useCallback } from "react" ;
12
-
10
+ import StoreRegistry from "@lowcoder-ee/redux/store/storeRegistry" ;
13
11
14
12
const UtilsCompBase = simpleMultiComp ( { } ) ;
15
13
export let UtilsComp = withExposingConfigs ( UtilsCompBase , [ ] ) ;
@@ -118,7 +116,9 @@ UtilsComp = withMethodExposing(UtilsComp, [
118
116
params : [ ] ,
119
117
} ,
120
118
execute : ( comp , params ) => {
121
- logoutAction ( { } )
119
+ StoreRegistry . getStore ( ) . dispatch (
120
+ logoutAction ( { } )
121
+ ) ;
122
122
} ,
123
123
} ,
124
124
] ) ;
You can’t perform that action at this time.
0 commit comments