mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
fix: Disallows negative options remaining (#13749)
This commit is contained in:
committed by
GitHub
parent
9d0bb3a3ba
commit
4ae9b819d3
@@ -204,7 +204,7 @@ export default class SelectControl extends React.PureComponent {
|
||||
if (this.optionsIncludesSelectAll(options)) {
|
||||
remainingOptions -= 1;
|
||||
}
|
||||
return remainingOptions;
|
||||
return remainingOptions < 0 ? 0 : remainingOptions;
|
||||
}
|
||||
|
||||
createMetaSelectAllOption() {
|
||||
|
||||
Reference in New Issue
Block a user