Skip to content

Commit 68cd270

Browse files
committed
If the From date is after the To date, show an error
1 parent 2cf6a98 commit 68cd270

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/webapp/app/components/runs/v3/SharedFilters.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,11 @@ export function TimeDropdown({
390390
return;
391391
}
392392

393+
if (fromValue && toValue && fromValue > toValue) {
394+
setValidationError("From date must be before To date");
395+
return;
396+
}
397+
393398
replace({
394399
period: undefined,
395400
cursor: undefined,

0 commit comments

Comments
 (0)