- Notifications
You must be signed in to change notification settings - Fork926
Commit4412f19
authored
fix: sync websocket params with form params (#17895)
The current issue is that when multiple parameters are added or removedfrom a form because a user change in a conditional parameter value. Thewebsocket parameters response gets out of sync with the state of theparameters in the form.The form state needs to be maintained because this is what getssubmitted when the user attempts to create a workspace.Fixes:1. When autofill params are set from the url, mark these params astouched in the form. This is necessary as only touched params are sentin the request to the websocket. These params should technically countas being touched because they were preset from the url params.2. Create a hook to synchronize the parameters from the websocketresponse with the current state of the parameters stored in the form.1 parent766277c commit4412f19
File tree
1 file changed
+77
-4
lines changed- site/src/pages/CreateWorkspacePage
1 file changed
+77
-4
lines changedLines changed: 77 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
116 | 137 |
| |
117 | 138 |
| |
118 | 139 |
| |
| |||
123 | 144 |
| |
124 | 145 |
| |
125 | 146 |
| |
| 147 | + | |
126 | 148 |
| |
127 | 149 |
| |
128 | 150 |
| |
| |||
140 | 162 |
| |
141 | 163 |
| |
142 | 164 |
| |
143 |
| - | |
144 |
| - | |
145 |
| - | |
146 |
| - | |
147 | 165 |
| |
148 | 166 |
| |
149 | 167 |
| |
| |||
250 | 268 |
| |
251 | 269 |
| |
252 | 270 |
| |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
253 | 277 |
| |
254 | 278 |
| |
255 | 279 |
| |
| |||
579 | 603 |
| |
580 | 604 |
| |
581 | 605 |
| |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + |
0 commit comments
Comments
(0)