diff --git a/airbyte-webapp/src/core/domain/connector/constants.ts b/airbyte-webapp/src/core/domain/connector/constants.ts index a8ca0d30e1877..11985fab16ce6 100644 --- a/airbyte-webapp/src/core/domain/connector/constants.ts +++ b/airbyte-webapp/src/core/domain/connector/constants.ts @@ -15,7 +15,7 @@ export const DEV_IMAGE_TAG = "dev"; * @param {string} workspaceId The workspace Id * @returns {array} List of connectorIds that should be filtered out */ -export const getExcludedConnectorIds = (workspaceId: string) => +export const getExcludedConnectorIds = (workspaceId?: string) => isCloudApp() ? [ "707456df-6f4f-4ced-b5c6-03f73bcad1c5", // hide Cassandra Destination https://github.com/airbytehq/airbyte-cloud/issues/2606 diff --git a/airbyte-webapp/src/packages/cloud/components/experiments/SignupSourceDropdown/useGetSourceDefinitions.tsx b/airbyte-webapp/src/packages/cloud/components/experiments/SignupSourceDropdown/useGetSourceDefinitions.tsx index a798487d61ce5..81f43ae1b8978 100644 --- a/airbyte-webapp/src/packages/cloud/components/experiments/SignupSourceDropdown/useGetSourceDefinitions.tsx +++ b/airbyte-webapp/src/packages/cloud/components/experiments/SignupSourceDropdown/useGetSourceDefinitions.tsx @@ -16,10 +16,11 @@ const fetchCatalog = async (): Promise => { }; export const useGetSourceDefinitions = () => { - return useQuery("cloud_catalog", fetchCatalog, { + return useQuery("cloud_catalog", fetchCatalog, { select: (data) => { + const excludedConnectorIds = getExcludedConnectorIds(); return data.sources - .filter(() => getExcludedConnectorIds("")) + .filter((source) => !excludedConnectorIds.includes(source.sourceDefinitionId)) .map((source) => { const icon = availableSourceDefinitions.sourceDefinitions.find( (src) => src.sourceDefinitionId === source.sourceDefinitionId