Change URL param string for destination panel type as it conflicts with Connect Modal (#43734)

## Context

Small one - while on the database replication page, if you open the
Connect Dialog and change the "type" field, the destination panel opens
up. Happening cause the string for `useQueryState` conflicts here - both
are using `type`

Fix is just to update the string for `useQueryState` for the
DestinationPanel component, changed it to `destinationType`
This commit is contained in:
Joshen Lim authored and GitHub committed 2026-03-16 10:26:06 +07:00
1 parent d47fd2438c
commit be7f8ca524
3 files changed
+3 -3

No files matched your search

@@ -36,7 +36,7 @@ export const DestinationPanel = ({ onSuccessCreateReadReplica }: DestinationPane
const { hasAccess: hasETLReplicationAccess } = useCheckEntitlements('replication.etl')
const [urlDestinationType, setDestinationType] = useQueryState(
'type',
'destinationType',
parseAsStringEnum<DestinationType>([
'Read Replica',
'BigQuery',
@@ -18,7 +18,7 @@ export const DestinationTypeSelection = () => {
).length
const [urlDestinationType, setDestinationType] = useQueryState(
'type',
'destinationType',
parseAsStringEnum<DestinationType>([
'Read Replica',
'BigQuery',
@@ -56,7 +56,7 @@ export const Destinations = () => {
const [statusRefetchInterval, setStatusRefetchInterval] = useState<number | false>(5000)
const [_, setDestinationType] = useQueryState(
'type',
'destinationType',
parseAsStringEnum<DestinationType>([
'Read Replica',
'BigQuery',