Skip to content

Commit 9d0497f

Browse files
committed
[dashboard] Ensure we fetch IDEOptions onload
1 parent a48e177 commit 9d0497f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/dashboard/src/start/StartWorkspace.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,13 @@ export default class StartWorkspace extends React.Component<StartWorkspaceProps,
121121
}
122122

123123
if (this.props.dontAutostart) {
124+
// we saw errors previously, or run in-frame
124125
this.fetchWorkspaceInfo(undefined);
125-
return;
126+
} else {
127+
// dashboard case (w/o previous errors): start workspace as quickly as possible
128+
this.startWorkspace();
126129
}
127130

128-
// dashboard case (no previous errors): start workspace as quickly as possible
129-
this.startWorkspace();
130131
// query IDE options so we can show them if necessary once the workspace is running
131132
getGitpodService().server.getIDEOptions().then(ideOptions => this.setState({ ideOptions }));
132133
}

0 commit comments

Comments
 (0)