mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] web_timeline: Don't crash when restoring timeline from breadcrumb
This commit is contained in:
committed by
CarlosRoca13
parent
6782e1954d
commit
d2dcca18ff
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user