RockteMQ-AI commented on issue #1895:
URL:
https://github.com/apache/rocketmq-dashboard/issues/1895#issuecomment-5255722144
**Issue Evaluation**
Category: `bug` | Status: **Confirmed**
Verified against `master` branch
(`frontend-new/src/pages/Message/message.jsx`). Lines 105, 114-115 call
`.valueOf()` on `timepickerBegin` and `timepickerEnd` without null checks:
```jsx
if (timepickerEnd.valueOf() < timepickerBegin.valueOf()) { // line 105
...
timepickerBegin.valueOf(), // line 114
timepickerEnd.valueOf(), // line 115
```
When either DatePicker is cleared, the state becomes `null`, and
`null.valueOf()` throws `TypeError`. The DatePicker component allows clearing
(no `disabled` or `allowClear={false}` constraint).
**Severity:** medium — the query feature becomes unusable after clearing a
date field, with no user-friendly error.
**Impact:** Message query page.
Suggested fix: add null guards before `.valueOf()` calls; show a localized
prompt when dates are missing.
An automated fix proposal can be generated. Reply `/approve` to proceed with
PR generation.
---
*Automated evaluation by github-manager-bot*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]