mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
ESLint: no-restricted-syntax (#10889)
* Enable no-restricted syntax rule * Fix webpack.config.js * Remove unused function from utils/common.js * Refactor triple nested for loop * Fix loops in src/explore components * Fix loops in SqlLab components * Fix loops in AlteredSliceTag * Fix loops in FilterableTable * Add fixtures and uinit tests for findControlItem * Add license
This commit is contained in:
committed by
GitHub
parent
2003442b32
commit
ccfd293227
@@ -493,8 +493,7 @@ export default function sqlLabReducer(state = {}, action) {
|
||||
// Fetch the updates to the queries present in the store.
|
||||
let change = false;
|
||||
let { queriesLastUpdate } = state;
|
||||
for (const id in action.alteredQueries) {
|
||||
const changedQuery = action.alteredQueries[id];
|
||||
Object.entries(action.alteredQueries).forEach(([id, changedQuery]) => {
|
||||
if (
|
||||
!state.queries.hasOwnProperty(id) ||
|
||||
(state.queries[id].state !== 'stopped' &&
|
||||
@@ -506,7 +505,7 @@ export default function sqlLabReducer(state = {}, action) {
|
||||
newQueries[id] = { ...state.queries[id], ...changedQuery };
|
||||
change = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
if (!change) {
|
||||
newQueries = state.queries;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user