Describe the bug
Moving a choice card to a card that belongs to its subtree causes an error.
To Reproduce
Steps to reproduce the behavior:
Go to a process
Add a new choice card
Add a another choice card under one of this choices children.
Move the first choice card on top of the second choice card.
Expected behavior
All the cards that belongs to a choice cards subtree should be darkened and it should not be possible to drop it on top of any of them as this causes a loop in the hierarchy.
Cards that has children should also be disabled for choice movement since we don't have a way of merging these potentially complex relations.
Describe the bug Moving a choice card to a card that belongs to its subtree causes an error.
To Reproduce Steps to reproduce the behavior:
Expected behavior All the cards that belongs to a choice cards subtree should be darkened and it should not be possible to drop it on top of any of them as this causes a loop in the hierarchy.
Cards that has children should also be disabled for choice movement since we don't have a way of merging these potentially complex relations.