Commit 1596adc
committed
fix(FR-1783): fix session launcher resource form initialization on page refresh
- Add null check in InputNumberWithSlider to prevent undefined value
causing incorrect setValue(0) calls during page refresh
- Add optional chaining for shmem field in ResourceAllocationFormItems
to handle undefined resource values
- Fix form error detection in SessionLauncherPreview to explicitly
check resource field keys for proper error status display1 parent 7026414 commit 1596adc
File tree
3 files changed
+14
-20
lines changed- react/src/components
- SessionFormItems
3 files changed
+14
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
Lines changed: 5 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
| 453 | + | |
459 | 454 | | |
460 | 455 | | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
| 456 | + | |
466 | 457 | | |
467 | 458 | | |
468 | 459 | | |
| |||
704 | 695 | | |
705 | 696 | | |
706 | 697 | | |
707 | | - | |
| 698 | + | |
708 | 699 | | |
709 | 700 | | |
710 | 701 | | |
| |||
854 | 845 | | |
855 | 846 | | |
856 | 847 | | |
857 | | - | |
| 848 | + | |
858 | 849 | | |
859 | 850 | | |
860 | 851 | | |
| |||
1543 | 1534 | | |
1544 | 1535 | | |
1545 | 1536 | | |
| 1537 | + | |
1546 | 1538 | | |
1547 | 1539 | | |
1548 | 1540 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
411 | 413 | | |
412 | 414 | | |
413 | 415 | | |
| |||
0 commit comments