[FIX] web_timeline: Don't crash when restoring timeline from breadcrumb

pull/2378/head
Holger Brunn 2022-07-18 06:44:33 +02:00 committed by anjeel.haria
parent 6faeeb54ba
commit e614a7a149
1 changed files with 3 additions and 3 deletions

View File

@ -43,9 +43,9 @@ odoo.define("web_timeline.TimelineController", function (require) {
const defaults = _.defaults({}, options, { const defaults = _.defaults({}, options, {
adjust_window: true, adjust_window: true,
}); });
const domains = params.domain; const domains = params.domain || this.renderer.last_domains || [];
const contexts = params.context; const contexts = params.context || [];
const group_bys = params.groupBy; const group_bys = params.groupBy || this.renderer.last_group_bys || [];
this.last_domains = domains; this.last_domains = domains;
this.last_contexts = contexts; this.last_contexts = contexts;
// Select the group by // Select the group by