{"record":{"id":"4a8b2a603636911d","repo":"octobercms/october","slug":"treeview-branch-in-list-mode-cannot-have-the-move","errorCode":null,"errorMessage":"Treeview branch in LIST mode cannot have the MOVE drag and drop option enabled. Node path: {}","messagePattern":"Treeview branch in LIST mode cannot have the MOVE drag and drop option enabled\\. Node path: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/vuecomponents/treeview/assets/js/node.js","lineNumber":746,"sourceCode":"                that.$refs.contextmenuTrigger.focus();\n            });\n        }\n    },\n    mounted: function onMounted() {\n        this.expanded = localStorage.getItem(this.expandStatusStorageKey) == '1';\n        this.menuId = $.oc.domIdManager.generate('dropdown-menu');\n        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    }","sourceCodeStart":728,"sourceCodeEnd":764,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/vuecomponents/treeview/assets/js/node.js#L728-L764","documentation":"Thrown during the treeview node's mounted hook when a branch configured with displayMode 'list' also has the MOVE drag and drop option enabled. LIST-mode branches render nodes as a flat list where drag-and-drop reordering is meaningless, so the component refuses to mount. The node path in the message identifies the offending branch.","triggerScenarios":"Thrown at modules/backend/vuecomponents/treeview/assets/js/node.js:746 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the movable/dragAndDropMovable option from branches whose branchDisplayMode is 'list'","Change the branch's displayMode from 'list' to a mode that supports MOVE drag and drop (e.g. tree 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"}