mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
prevent setting item parent to itself
This commit is contained in:
parent
ca86bad272
commit
93ba730c94
@ -36,7 +36,7 @@ function useSelectPositionManager(): {
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
if (selectPosition && markerClicked && 'text' in selectPosition) {
|
||||
if (selectPosition && markerClicked && 'text' in selectPosition && markerClicked.id !==selectPosition.id) {
|
||||
itemUpdateParent({ ...selectPosition, parent: markerClicked.id })
|
||||
}
|
||||
}, [markerClicked])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user