# Prevent moving a channel into its descendant \(\#3480\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/aace0d816db4583b93caabb2bfce1c2d4594360d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: aace0d816db4583b93caabb2bfce1c2d4594360d

Requested commit: aace0d816db4583b93caabb2bfce1c2d4594360d

Commit: aace0d816db4583b93caabb2bfce1c2d4594360d

Tree: 94f21ff7499fa852a1fbb7c63b97f636b0ea2089

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Prevent moving a channel into its descendant (#3480)

This fixes a bug where it was possible to put the channel tree into a
bad state by accidentally dragging a channel into itself or one of its
descendants.
```

## Parents

- [c3e7732eabe75284c966031672166591762e5a9c](https://git.cafe/gitcafe/zed/commit/c3e7732eabe75284c966031672166591762e5a9c?format=markdown)

- [44796283425893b89431e3a32663c79918c57f74](https://git.cafe/gitcafe/zed/commit/44796283425893b89431e3a32663c79918c57f74?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/aace0d816db4583b93caabb2bfce1c2d4594360d?format=markdown)
