Skip to content

Commit

Permalink
Fix check of ds projects (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfranklin authored Oct 3, 2023
1 parent f3bc5af commit 337eaf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular/src/app/services/agave-systems.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class AgaveSystemsService {
}

getProjectMetadata(projects: Project[], dsProjects: SystemSummary[]): Project[] {
if (dsProjects.length > 0) {
if (dsProjects && dsProjects.length > 0) {
return projects.map((p) => {
const dsProject = dsProjects.find((dp) => dp.id === p.system_id);
p.title = dsProject ? dsProject.description : null;
Expand Down

0 comments on commit 337eaf6

Please sign in to comment.