mirror of
https://github.com/apache/superset.git
synced 2026-04-23 01:55:09 +00:00
fix(sql lab): MultiSelector component render twice (#20706)
* fix(sql lab): MultiSelector component render twice * filter null/undefined tables
This commit is contained in:
@@ -181,8 +181,8 @@ describe('sqlLabReducer', () => {
|
||||
});
|
||||
it('should remove a table', () => {
|
||||
const action = {
|
||||
type: actions.REMOVE_TABLE,
|
||||
table: newTable,
|
||||
type: actions.REMOVE_TABLES,
|
||||
tables: [newTable],
|
||||
};
|
||||
newState = sqlLabReducer(newState, action);
|
||||
expect(newState.tables).toHaveLength(0);
|
||||
|
||||
Reference in New Issue
Block a user