fix(ui): dnd error read properties of null
This commit is contained in:
parent
d0f2bd96a8
commit
3b732d6db7
@ -19,7 +19,7 @@ const useDragEnd = (props?: any) => {
|
||||
const breakRemoveOn = over?.data?.current?.breakRemoveOn;
|
||||
const wrapSchema = over?.data?.current?.wrapSchema;
|
||||
const onSuccess = over?.data?.current?.onSuccess;
|
||||
const removeParentsIfNoChildren = over.data.current.removeParentsIfNoChildren ?? true;
|
||||
const removeParentsIfNoChildren = over?.data?.current?.removeParentsIfNoChildren ?? true;
|
||||
|
||||
if (!activeSchema || !overSchema) {
|
||||
props?.onDragEnd?.(event);
|
||||
|
Loading…
Reference in New Issue
Block a user