From f03f3701d7928d26d876cbe22d093029483c0f1a Mon Sep 17 00:00:00 2001 From: Johannes Alneberg Date: Tue, 28 Jan 2025 15:24:47 +0100 Subject: [PATCH] Bugfix for new project page --- run_dir/static/js/projects_main_vue.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run_dir/static/js/projects_main_vue.js b/run_dir/static/js/projects_main_vue.js index e86aa8c1..d996c994 100644 --- a/run_dir/static/js/projects_main_vue.js +++ b/run_dir/static/js/projects_main_vue.js @@ -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.');