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