Code Review
/
src
/
xds
/
xds-agent.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fixed build page when no project exists
[src/xds/xds-agent.git]
/
webapp
/
src
/
app
/
pages
/
build
/
settings
/
project-select-dropdown.component.ts
diff --git
a/webapp/src/app/pages/build/settings/project-select-dropdown.component.ts
b/webapp/src/app/pages/build/settings/project-select-dropdown.component.ts
index
a83ec0a
..
a99dc6b
100644
(file)
--- a/
webapp/src/app/pages/build/settings/project-select-dropdown.component.ts
+++ b/
webapp/src/app/pages/build/settings/project-select-dropdown.component.ts
@@
-28,7
+28,9
@@
export class ProjectSelectDropdownComponent implements OnInit {
}
select() {
- this.projectSvr.setCurrentById(this.curPrj.id);
+ if (this.curPrj) {
+ this.projectSvr.setCurrentById(this.curPrj.id);
+ }
}
}