We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa9a9c0 commit acbbbb2Copy full SHA for acbbbb2
1 file changed
apps/sim/hooks/use-permission-config.ts
@@ -114,9 +114,14 @@ export function usePermissionConfig(): PermissionConfigResult {
114
return featureFlagDisabled || config.disableInvitations
115
}, [config.disableInvitations])
116
117
+ const mergedConfig = useMemo(
118
+ () => ({ ...config, allowedIntegrations: mergedAllowedIntegrations }),
119
+ [config, mergedAllowedIntegrations]
120
+ )
121
+
122
return useMemo(
123
() => ({
- config,
124
+ config: mergedConfig,
125
isLoading,
126
isInPermissionGroup,
127
filterBlocks,
@@ -126,7 +131,7 @@ export function usePermissionConfig(): PermissionConfigResult {
131
isInvitationsDisabled,
132
}),
128
133
[
129
134
+ mergedConfig,
130
135
136
137
0 commit comments