Skip to content

Commit

Permalink
Bugfix for new project page
Browse files Browse the repository at this point in the history
  • Loading branch information
alneberg committed Jan 28, 2025
1 parent 8fc72fe commit f03f370
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion run_dir/static/js/projects_main_vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,12 @@ const vProjectsStatus = {
.get(`/api/v1/project_summary/${project_id}?view_with_sources=True`)
.then(response => {
if (response.data !== null) {
Object.assign(this.project_details[project_id], response.data); }
if (this.project_details[project_id] == undefined) {
this.project_details[project_id] = response.data;
} else {
Object.assign(this.project_details[project_id], response.data);
}
}
})
.catch(error => {
this.error_messages.push('Error fetching project details for project ' + project_id + '. Please try again or contact a system administrator.');
Expand Down

0 comments on commit f03f370

Please sign in to comment.