mirror of
https://github.com/apache/superset.git
synced 2026-06-05 23:59:25 +00:00
fix(sqllab): pass DB id instead of name (#33955)
This commit is contained in:
@@ -353,7 +353,7 @@ test('Sends the correct db when changing the database', async () => {
|
||||
await waitFor(() =>
|
||||
expect(props.onDbChange).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
id: `mysql-test-mysql-2`,
|
||||
value: 2,
|
||||
database_name: 'test-mysql',
|
||||
backend: 'mysql',
|
||||
}),
|
||||
|
||||
@@ -196,7 +196,6 @@ export function DatabaseSelector({
|
||||
/>
|
||||
),
|
||||
value: row.id,
|
||||
id: `${row.backend}-${row.database_name}-${row.id}`,
|
||||
database_name: row.database_name,
|
||||
backend: row.backend,
|
||||
allow_multi_catalog: row.allow_multi_catalog,
|
||||
|
||||
Reference in New Issue
Block a user