@@ -26,13 +26,12 @@ export const EnterpriseProvider: React.FC<ProviderProps> = ({ children }) => {
2626// Fetch the enterprise license only if we're in an EE environment
2727dispatch ( fetchEnterpriseLicense ( ) ) ;
2828dispatch ( fetchEnvironments ( ) ) ;
29- dispatch ( fetchBrandingSetting ( { orgId :user . currentOrgId , fallbackToGlobal :true } ) )
3029} else {
3130// Set the state to false for non-EE environments
3231// setEEActiveState(false);
3332setIsEnterpriseActive ( false ) ;
3433}
35- } , [ dispatch , user . currentOrgId ] ) ;
34+ } , [ dispatch ] ) ;
3635
3736useEffect ( ( ) => {
3837if ( isEEEnvironment ( ) ) {
@@ -41,6 +40,12 @@ export const EnterpriseProvider: React.FC<ProviderProps> = ({ children }) => {
4140setIsEnterpriseActive ( isEnterpriseActiveRedux ) ;
4241}
4342} , [ isEnterpriseActiveRedux ] ) ;
43+
44+ useEffect ( ( ) => {
45+ if ( isEEEnvironment ( ) ) {
46+ dispatch ( fetchBrandingSetting ( { orgId :user . currentOrgId , fallbackToGlobal :true } ) )
47+ }
48+ } , [ dispatch , user . currentOrgId ] ) ;
4449
4550return (
4651< EnterpriseContext . Provider value = { { isEnterpriseActive} } >