Skip to content

TypeError: Cannot read properties of undefined (reading '0') #4112

@bjester

Description

@bjester

Observed behavior

Dragging and dropping a node from a nested folder, upwards to the root (via the sidebar) hits an error

vue.runtime.esm.js:619 [Vue warn]: Error in v-on handler: "TypeError: Cannot read properties of undefined (reading '0')"
found in
---> <DraggableCollection> at shared/views/draggable/DraggableCollection.vue
       <VNavigationDrawer>
         <ResizableNavigationDrawer> at shared/views/ResizableNavigationDrawer.vue
           <DraggableRegion> at shared/views/draggable/DraggableRegion.vue
             <TreeViewBase> at channelEdit/views/TreeView/TreeViewBase.vue
               <TreeView> at channelEdit/views/TreeView/index.vue
                 <VApp>
                   <Root>

vue.runtime.esm.js:1897 TypeError: Cannot read properties of undefined (reading '0')
    at VueComponent.handleDragDrop (CurrentTopicView.vue:541:1)
    at VueComponent.handleDragDrop (index.vue:393:1)
    at VueComponent.handleRegionDrop (index.vue:378:1)
    at invokeWithErrorHandling (vue.runtime.esm.js:1863:1)
    at VueComponent.invoker (vue.runtime.esm.js:2188:1)
    at invokeWithErrorHandling (vue.runtime.esm.js:1863:1)
    at Vue.$emit (vue.runtime.esm.js:3903:1)
    at container.js:296:1

Screenshot from 2023-06-06 09-53-13

Expected behavior

No errors should occur

Usage Details

  • OS: Ubuntu 22.04
  • Browser: Chrome 114.x

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions