mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
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:
1 parent
d47fd2438c
commit
be7f8ca524
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -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',
|
||||
|
||||
+1
-1
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user