{"record":{"id":"b5a5309424a9998e","repo":"octobercms/october","slug":"treeview-branch-in-list-mode-cannot-have-the-group","errorCode":null,"errorMessage":"Treeview branch in LIST mode cannot have the groupBy property set. Node path: {}","messagePattern":"Treeview branch in LIST mode cannot have the groupBy property set\\. Node path: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/vuecomponents/treeview/assets/js/node.js","lineNumber":753,"sourceCode":"        this.menuButtonId = $.oc.domIdManager.generate('treeview-menu-button');\n        this.menuLabelId = $.oc.domIdManager.generate('treeview-menu-label');\n\n        if (this.dragAndDropSortable && this.branchSortBy) {\n            throw new Error(\n                'Nodes belonging to branches with SORT drag and drop option cannot be sortable using the sortBy option. Node path: ' +\n                this.keyPathString\n            );\n        }\n\n        if (this.dragAndDropMovable && this.branchDisplayMode == 'list') {\n            throw new Error(\n                'Treeview branch in LIST mode cannot have the MOVE drag and drop option enabled. Node path: ' +\n                this.keyPathString\n            );\n        }\n\n        if (this.branchGroupBy && this.branchDisplayMode !== 'list') {\n            throw new Error(\n                'Treeview branch in LIST mode cannot have the groupBy property set. Node path: ' + this.keyPathString\n            );\n        }\n\n        if (this.branchDragAndDropMode && this.branchGroupBy) {\n            throw new Error(\n                'Treeview drag and drop is not supported for branches with enabled groupBy option. Node path: ' +\n                this.keyPathString\n            );\n        }\n    }\n};\n","sourceCodeStart":735,"sourceCodeEnd":766,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/vuecomponents/treeview/assets/js/node.js#L735-L766","documentation":"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.","triggerScenarios":"Thrown at modules/backend/vuecomponents/treeview/assets/js/node.js:753 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the branch's displayMode to 'list' so groupBy is supported","Remove the groupBy property from branches not displayed in LIST mode"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","contentChangedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}