diff --git a/app/assets/javascripts/timelines.js b/app/assets/javascripts/timelines.js index 250b3f70f0..824efee403 100644 --- a/app/assets/javascripts/timelines.js +++ b/app/assets/javascripts/timelines.js @@ -875,12 +875,10 @@ Timeline = { } // project → parent - if (e.parent) { - e.parent = dataEnhancer.getElement(Timeline.Project, e.parent.id); - } - else { - e.parent = undefined; + if (e.parent_id) { + e.parent = dataEnhancer.getElement(Timeline.Project, e.parent_id); } + delete e.parent_id; }); };