mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +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
@@ -103,7 +103,7 @@ export default class SelectControl extends React.PureComponent {
|
||||
if (opt) {
|
||||
if (this.props.multi) {
|
||||
optionValue = [];
|
||||
for (const o of opt) {
|
||||
opt.forEach(o => {
|
||||
// select all options
|
||||
if (o.meta === true) {
|
||||
this.props.onChange(
|
||||
@@ -114,7 +114,7 @@ export default class SelectControl extends React.PureComponent {
|
||||
return;
|
||||
}
|
||||
optionValue.push(o[this.props.valueKey] || o);
|
||||
}
|
||||
});
|
||||
} else if (opt.meta === true) {
|
||||
return;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user