Commit e7e6e84
committed
fix(webapp): keep controlled TimeFilter from falling back to the URL
When TimeFilter is used in controlled mode (onValueChange provided), it now
takes period/from/to only from props instead of falling back to the URL
search params. Selecting a custom date range in the model detail panel (which
sets period to undefined) no longer reverts the filter display to the
page-level URL period.1 parent f5ac92a commit e7e6e84
1 file changed
Lines changed: 7 additions & 3 deletions
File tree
- apps/webapp/app/components/runs/v3
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | | - | |
380 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
381 | 385 | | |
382 | 386 | | |
383 | 387 | | |
| |||
0 commit comments