File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
client/packages/lowcoder/src/util/context Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,12 @@ export const EnterpriseProvider: React.FC<ProviderProps> = ({ children }) => {
26
26
// Fetch the enterprise license only if we're in an EE environment
27
27
dispatch ( fetchEnterpriseLicense ( ) ) ;
28
28
dispatch ( fetchEnvironments ( ) ) ;
29
- dispatch ( fetchBrandingSetting ( { orgId : user . currentOrgId , fallbackToGlobal : true } ) )
30
29
} else {
31
30
// Set the state to false for non-EE environments
32
31
// setEEActiveState(false);
33
32
setIsEnterpriseActive ( false ) ;
34
33
}
35
- } , [ dispatch , user . currentOrgId ] ) ;
34
+ } , [ dispatch ] ) ;
36
35
37
36
useEffect ( ( ) => {
38
37
if ( isEEEnvironment ( ) ) {
@@ -41,6 +40,12 @@ export const EnterpriseProvider: React.FC<ProviderProps> = ({ children }) => {
41
40
setIsEnterpriseActive ( isEnterpriseActiveRedux ) ;
42
41
}
43
42
} , [ isEnterpriseActiveRedux ] ) ;
43
+
44
+ useEffect ( ( ) => {
45
+ if ( isEEEnvironment ( ) ) {
46
+ dispatch ( fetchBrandingSetting ( { orgId : user . currentOrgId , fallbackToGlobal : true } ) )
47
+ }
48
+ } , [ dispatch , user . currentOrgId ] ) ;
44
49
45
50
return (
46
51
< EnterpriseContext . Provider value = { { isEnterpriseActive } } >
You can’t perform that action at this time.
0 commit comments