Skip to content

Commit

Permalink
Fixed 0s not being checked for duplicates correctly (#63632)
Browse files Browse the repository at this point in the history
Fixes duplicate 0 values being allowed in the visualize percentiles input.
  • Loading branch information
ThomThomson authored Apr 16, 2020
1 parent 560e01a commit 4b7895a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 4b7895a

Please sign in to comment.