Skip to content

Commit

Permalink
Fix: issue-3216 Data Quality - Min and Max value config error (#3218)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaileshParmar11 committed Mar 7, 2022
1 parent 954908e commit 8c7933c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ const ColumnTestForm = ({
case ColumnTestType.columnValueLengthsToBeBetween:
case ColumnTestType.columnValuesToBeBetween:
errMsg.minOrMax = isEmpty(minValue) && isEmpty(maxValue);
if (!isEmpty(minValue) && !isEmpty(maxValue)) {
errMsg.minMaxValue = (minValue as number) > (maxValue as number);
if (!isUndefined(minValue) && !isUndefined(maxValue)) {
errMsg.minMaxValue = (+minValue as number) > (+maxValue as number);
}

break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ const TableTestForm = ({

if (isTableRowCountToBeBetweenTest) {
errMsg.minOrMax = isEmpty(minValue) && isEmpty(maxValue);
if (!isEmpty(minValue) && !isEmpty(maxValue)) {
errMsg.minMaxValue = (minValue as number) > (maxValue as number);
if (!isUndefined(minValue) && !isUndefined(maxValue)) {
errMsg.minMaxValue = (+minValue as number) > (+maxValue as number);
}
} else {
errMsg.values = isEmpty(value);
Expand Down

0 comments on commit 8c7933c

Please sign in to comment.