mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Fixed 0s not being checked for duplicates correctly (#63632)
Fixes duplicate 0 values being allowed in the visualize percentiles input.
This commit is contained in:
parent
560e01a38f
commit
4b7895a8de
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ function validateValueUnique(
|
|||
isDuplicate: false,
|
||||
};
|
||||
|
||||
if (inputValue && list.indexOf(inputValue) !== index) {
|
||||
if (inputValue !== EMPTY_STRING && list.indexOf(inputValue) !== index) {
|
||||
result.isDuplicate = true;
|
||||
result.error = i18n.translate(
|
||||
'visDefaultEditor.controls.numberList.duplicateValueErrorMessage',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue