mirror of
https://github.com/apache/superset.git
synced 2026-04-27 20:14:54 +00:00
fix: clear modal state after adding dataset (#17044)
* fix: clear modal state after adding dataset * Fix test * Small fixes
This commit is contained in:
@@ -26,7 +26,12 @@ import DatabaseSelector from '.';
|
||||
const SupersetClientGet = jest.spyOn(SupersetClient, 'get');
|
||||
|
||||
const createProps = () => ({
|
||||
db: { id: 1, database_name: 'test', backend: 'test-postgresql' },
|
||||
db: {
|
||||
id: 1,
|
||||
database_name: 'test',
|
||||
backend: 'test-postgresql',
|
||||
allow_multi_schema_metadata_fetch: false,
|
||||
},
|
||||
formMode: false,
|
||||
isDatabaseSelectEnabled: true,
|
||||
readOnly: false,
|
||||
@@ -246,6 +251,7 @@ test('Sends the correct db when changing the database', async () => {
|
||||
id: 2,
|
||||
database_name: 'test-mysql',
|
||||
backend: 'mysql',
|
||||
allow_multi_schema_metadata_fetch: false,
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user