Commit 43342c8
fix(console): drop unused import and guard invalid audit-log date params
Removes the leftover `useRef` import that failed lint, and validates `from`/`to`
URL params with dayjs.isValid() before seeding the range — a malformed value no
longer builds an invalid Dayjs that serializes back as "Invalid Date" and
poisons the request.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SeUP6H1fsHsJjo2FLKKqUS1 parent b1329fb commit 43342c8
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
281 | 289 | | |
282 | 290 | | |
283 | 291 | | |
| |||
0 commit comments