{"record":{"id":"5afdd596296100c8","repo":"octobercms/october","slug":"nodes-belonging-to-branches-with-sort-drag-and-dro","errorCode":null,"errorMessage":"Nodes belonging to branches with SORT drag and drop option cannot be sortable using the sortBy option. Node path: {}","messagePattern":"Nodes belonging to branches with SORT drag and drop option cannot be sortable using the sortBy option\\. Node path: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/vuecomponents/treeview/assets/js/node.js","lineNumber":739,"sourceCode":"            $(this.$refs.contextmenuTrigger).removeAttr('aria-expanded');\n            this.contextMenuVisible = false;\n        },\n\n        onMenuClosedWithEsc: function () {\n            var that = this;\n            nextTick(function () {\n                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","sourceCodeStart":721,"sourceCodeEnd":757,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/vuecomponents/treeview/assets/js/node.js#L721-L757","documentation":"Error \"Nodes belonging to branches with SORT drag and drop option cannot be sortable using the sortBy option. Node path: {}\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/vuecomponents/treeview/assets/js/node.js:739 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}