cybersemics / em

A beautiful, minimalistic note-taking app for personal sensemaking.
Other
282 stars 107 forks source link

DropUncle error: props.path is not defined #2051

Open raineorshine opened 3 months ago

raineorshine commented 3 months ago

See: https://github.com/cybersemics/em/blob/ecdbba043565720a26e194fddf7455ba7fcd0cbf/src/components/DropUncle.tsx

Steps to Reproduce

- a
  - b
    - c
      - x
    - d
  - e
  1. Set the cursor on c
  2. Drag a thought and drop it as a sibling after a (i.e. before e)

Current Behavior

There is a warning props.path is not defined, and the thought is not moved.

Expected Behavior

The thought should be moved after a.