Skip to content

Commit 40b956b

Browse files
author
Luis D. Lafaurie
committed
[IMP] web_timeline: allow UNASSIGNED grouping when using M2M field
1 parent acc94d7 commit 40b956b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_timeline/static/src/js/timeline_renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ odoo.define("web_timeline.TimelineRenderer", function (require) {
495495
event_data_transform: function (evt) {
496496
const [date_start, date_stop] = this._get_event_dates(evt);
497497
let group = evt[this.last_group_bys[0]];
498-
if (group && group instanceof Array) {
498+
if (group && group instanceof Array && group.length > 0) {
499499
group = _.first(group);
500500
} else {
501501
group = -1;

0 commit comments

Comments
 (0)