Commit 74a4ca3
fix(webapp): sync custom duration state when period prop changes
Add useEffect to update customValue and customUnit when the period prop
changes, fixing stale values in the custom input fields after selecting
a preset time period.
Co-authored-by: Eric Allam <ericallam@users.noreply.github.com>1 parent d54909e commit 74a4ca3
File tree
1 file changed
+8
-1
lines changed- apps/webapp/app/components/runs/v3
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
307 | 314 | | |
308 | 315 | | |
309 | 316 | | |
| |||
0 commit comments