Skip to content

It throws error in this.sort function. #2812

@nouphalpgs

Description

@nouphalpgs

Version: jsTree 3.3.17
it happens on line number 7950. this.sort(data.parent, true); if you turn deep false, then the error goes
this.sort(data.parent, false);
Message: Uncaught TypeError: Cannot read properties of undefined (reading 'toLowerCase')
admin.php?page=mlf-folders8:768 Filename:
admin.php?page=mlf-folders8:769 Line: 24
VM4213:24 Uncaught TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at $.jstree.plugins.contextmenu.sort (:24:28)
at Array.sort ()
at $.jstree.plugins.contextmenu.sort (jstree.js?ver=6.8.1:7974:18)
at $.jstree.plugins.contextmenu.sort (jstree.js?ver=6.8.1:7977:12)
at $.jstree.plugins.contextmenu. (jstree.js?ver=6.8.1:7950:12)
at HTMLUListElement.dispatch (jquery.min.js?ver=3.7.1:2:40035)
at v.handle (jquery.min.js?ver=3.7.1:2:38006)
at Object.trigger (jquery.min.js?ver=3.7.1:2:70124)
at e..triggerHandler (jquery.min.js?ver=3.7.1:2:70811)
at $.jstree.plugins.contextmenu.trigger (jstree.js?ver=6.8.1:967:17)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions