mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
fix: most Recently Selected Table Should Appear at the Top of the List on the Left Panel (#19258)
This commit is contained in:
@@ -134,7 +134,7 @@ export default function sqlLabReducer(state = {}, action) {
|
||||
}
|
||||
// for new table, associate Id of query for data preview
|
||||
at.dataPreviewQueryId = null;
|
||||
let newState = addToArr(state, 'tables', at);
|
||||
let newState = addToArr(state, 'tables', at, Boolean(action.prepend));
|
||||
if (action.query) {
|
||||
newState = alterInArr(newState, 'tables', at, {
|
||||
dataPreviewQueryId: action.query.id,
|
||||
|
||||
Reference in New Issue
Block a user