mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
Re-enable rule no-else-return (#10861)
This commit is contained in:
committed by
GitHub
parent
76275ec410
commit
2d8f4e3aaf
@@ -100,7 +100,8 @@ function handleMissingChoice(control) {
|
||||
if (control.multi && value.length > 0) {
|
||||
alteredControl.value = value.filter(el => choiceValues.indexOf(el) > -1);
|
||||
return alteredControl;
|
||||
} else if (!control.multi && choiceValues.indexOf(value) < 0) {
|
||||
}
|
||||
if (!control.multi && choiceValues.indexOf(value) < 0) {
|
||||
alteredControl.value = null;
|
||||
return alteredControl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user