From e614a7a14954975ff46f03d0a85e44394da14bff Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 18 Jul 2022 06:44:33 +0200 Subject: [PATCH] [FIX] web_timeline: Don't crash when restoring timeline from breadcrumb --- web_timeline/static/src/js/timeline_controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web_timeline/static/src/js/timeline_controller.js b/web_timeline/static/src/js/timeline_controller.js index dbb78de47..6c48dbf0e 100644 --- a/web_timeline/static/src/js/timeline_controller.js +++ b/web_timeline/static/src/js/timeline_controller.js @@ -43,9 +43,9 @@ odoo.define("web_timeline.TimelineController", function (require) { const defaults = _.defaults({}, options, { adjust_window: true, }); - const domains = params.domain; - const contexts = params.context; - const group_bys = params.groupBy; + const domains = params.domain || this.renderer.last_domains || []; + const contexts = params.context || []; + const group_bys = params.groupBy || this.renderer.last_group_bys || []; this.last_domains = domains; this.last_contexts = contexts; // Select the group by