File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
components/dashboard/src/user-settings Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,26 @@ export default function SelectIDE(props: SelectIDEProps) {
37
37
const additionalData = user ?. additionalData || { } ;
38
38
const ideSettings = additionalData . ideSettings || { } ;
39
39
40
+ // update stored autostart options to match useLatestVersion value set here
41
+ const workspaceAutostartOptions = additionalData ?. workspaceAutostartOptions ?. map ( ( option ) => {
42
+ if ( option . ideSettings ) {
43
+ const newOption = {
44
+ ...option ,
45
+ ideSettings : {
46
+ ...option . ideSettings ,
47
+ useLatestVersion,
48
+ } ,
49
+ } ;
50
+ return newOption ;
51
+ }
52
+
53
+ return option ;
54
+ } ) ;
55
+
40
56
const updates = {
41
57
additionalData : {
42
58
...additionalData ,
59
+ workspaceAutostartOptions,
43
60
ideSettings : {
44
61
...ideSettings ,
45
62
settingVersion : "2.0" ,
You can’t perform that action at this time.
0 commit comments