mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: enable no-unused-vars and prefer-template eslint rules (#10350)
This commit is contained in:
@@ -139,7 +139,6 @@ export default class SelectControl extends React.PureComponent {
|
||||
} else if (props.choices) {
|
||||
// Accepts different formats of input
|
||||
options = props.choices.map(c => {
|
||||
let option;
|
||||
if (Array.isArray(c)) {
|
||||
const [value, label] = c.length > 1 ? c : [c[0], c[0]];
|
||||
return { label, [props.valueKey]: value };
|
||||
|
||||
Reference in New Issue
Block a user