fix: gate auth category in AddConnectionDropdown by sync feature flag

This commit is contained in:
Ramesh Mane
2026-04-10 09:37:41 +00:00
parent 0ed869fd35
commit a85e4fe49d

View File

@@ -71,11 +71,9 @@ const isIntegrationAllowed = (i: (typeof allIntegrations)[number], category: (ty
if (i.sub_type === SyncDataType.NOCODB) return false
if (isEeUI && i.isOssOnly) return false
if (!easterEggToggle.value) {
// Auth category: only show integrations in availableSyncAuthIntegrationSubtypes
if (isSyncFeatureEnabled.value && category.value === IntegrationCategoryType.AUTH) {
return availableSyncAuthIntegrationSubtypes.value.includes(i.sub_type)
}
// Auth category: always filter by available sync auth subtypes
if (isSyncFeatureEnabled.value && category.value === IntegrationCategoryType.AUTH) {
return availableSyncAuthIntegrationSubtypes.value.includes(i.sub_type)
}
return true