fix(ui): dnd error read properties of null

This commit is contained in:
xilesun 2023-05-23 11:02:40 +08:00
parent d0f2bd96a8
commit 3b732d6db7

View File

@ -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);