mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 16:25:56 +08:00
fix: invalid custom time value (#4547)
This commit is contained in:
parent
b3bc78d23c
commit
7ec25b4f62
@ -154,7 +154,7 @@ function CustomTimePicker({
|
||||
break;
|
||||
}
|
||||
|
||||
if (minTime && minTime < maxAllowedMinTime) {
|
||||
if (minTime && (!minTime.isValid() || minTime < maxAllowedMinTime)) {
|
||||
setInputStatus('error');
|
||||
onError(true);
|
||||
setInputErrorMessage('Please enter time less than 6 months');
|
||||
|
Loading…
x
Reference in New Issue
Block a user