Skip to content

Commit

Permalink
fix firstload
Browse files Browse the repository at this point in the history
Signed-off-by: lturmel <lturmel@expertasolutions.com>
  • Loading branch information
lturmel committed Jul 28, 2020
1 parent fc4b65d commit dc2379e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/ext/Dashboard/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -454,16 +454,18 @@ class CICDDashboard extends React.Component<{}, {}> {

// Select Projectlist from the UserPreferences
let userPreferences = await getUserPreferences(this.extContext, this.hostInfo.name);
for(let i=0;i<userPreferences.selectedProjects.length;i++) {
let prString = userPreferences.selectedProjects[i]
let pr = this.state.projects.find(x=> x.name === prString);
if(pr !== undefined) {
let idx = this.state.projects.indexOf(pr);
this.projectSelection.select(idx);
}
}
//
if(userPreferences !== undefined) {

for(let i=0;i<userPreferences.selectedProjects.length;i++) {
let prString = userPreferences.selectedProjects[i]
let pr = this.state.projects.find(x=> x.name === prString);
if(pr !== undefined) {
let idx = this.state.projects.indexOf(pr);
this.projectSelection.select(idx);
}
}

if(userPreferences.showAllDeployment !== undefined) {
this.showAllBuildDeployment = (userPreferences.showAllDeployment === 0);
this.allDeploymentSelection.select(userPreferences.showAllDeployment);
Expand Down

0 comments on commit dc2379e

Please sign in to comment.