octobercms/october · error · Error
Treeview branch in LIST mode cannot have the groupBy…
Error message
Treeview branch in LIST mode cannot have the groupBy property set. Node path: {} What it means
Guard in the treeview node's mounted hook that fires when the groupBy property is combined with an incompatible branch display mode. Grouping is only valid for branches rendered in LIST display mode; setting branchGroupBy on a branch displayed any other way aborts mounting, with the key path identifying the branch.
Solutions
- Set the branch's displayMode to 'list' so groupBy is supported
- Remove the groupBy property from branches not displayed in LIST mode
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/backend/vuecomponents/treeview/assets/js/node.js:753 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/b5a5309424a9998e.
Report an issue: GitHub.
Appendix: source
Thrown at modules/backend/vuecomponents/treeview/assets/js/node.js:753
this.menuButtonId = $.oc.domIdManager.generate('treeview-menu-button');
this.menuLabelId = $.oc.domIdManager.generate('treeview-menu-label');
if (this.dragAndDropSortable && this.branchSortBy) {
throw new Error(
'Nodes belonging to branches with SORT drag and drop option cannot be sortable using the sortBy option. Node path: ' +
this.keyPathString
);
}
if (this.dragAndDropMovable && this.branchDisplayMode == 'list') {
throw new Error(
'Treeview branch in LIST mode cannot have the MOVE drag and drop option enabled. Node path: ' +
this.keyPathString
);
}
if (this.branchGroupBy && this.branchDisplayMode !== 'list') {
throw new Error(
'Treeview branch in LIST mode cannot have the groupBy property set. Node path: ' + this.keyPathString
);
}
if (this.branchDragAndDropMode && this.branchGroupBy) {
throw new Error(
'Treeview drag and drop is not supported for branches with enabled groupBy option. Node path: ' +
this.keyPathString
);
}
}
};
View on GitHub (pinned to b608633a7e)