Smol fix ETl (#40618)

* Smol fix ETl

* More fix
This commit is contained in:
Joshen Lim authored and GitHub committed 2025-11-19 21:36:43 +08:00
1 parent 02e7971fec
commit fe04045aa4
2 files changed
+6 -3

No files matched your search

@@ -6,6 +6,7 @@ import { toast } from 'sonner'
import * as z from 'zod'
import { useFlag, useParams } from 'common'
import { useApiKeysVisibility } from 'components/interfaces/APIKeys/hooks/useApiKeysVisibility'
import { getCatalogURI } from 'components/interfaces/Storage/StorageSettings/StorageSettings.utils'
import { getKeys, useAPIKeysQuery } from 'data/api-keys/api-keys-query'
import { useProjectSettingsV2Query } from 'data/config/project-settings-v2-query'
@@ -44,7 +45,6 @@ import { AnalyticsBucketFields, BigQueryFields } from './DestinationPanelFields'
import { DestinationTypeSelection } from './DestinationTypeSelection'
import { NoDestinationsAvailable } from './NoDestinationsAvailable'
import { PublicationSelection } from './PublicationSelection'
import { useApiKeysVisibility } from 'components/interfaces/APIKeys/hooks/useApiKeysVisibility'
const formId = 'destination-editor'
@@ -109,7 +109,7 @@ export const DestinationPanel = ({
useS3AccessKeyCreateMutation()
const { mutateAsync: createNamespace, isLoading: isCreatingNamespace } =
useIcebergNamespaceCreateMutation()
useIcebergNamespaceCreateMutation({ projectRef })
const {
data: publications = [],
@@ -18,6 +18,7 @@ async function getNamespaces({
warehouse,
tempApiKey,
}: GetNamespacesVariables & { tempApiKey?: string }) {
console.log('getNamespaces', { warehouse })
try {
if (!tempApiKey) throw new Error(`${errorPrefix}: API Key missing`)
@@ -71,7 +72,9 @@ export const useIcebergNamespacesQuery = <TData = IcebergNamespacesData>(
typeof projectRef !== 'undefined' &&
typeof tempApiKey !== 'undefined' &&
typeof catalogUri !== 'undefined' &&
typeof warehouse !== 'undefined',
catalogUri.length > 0 &&
typeof warehouse !== 'undefined' &&
warehouse.length > 0,
...options,
})
}