fix page popup

This commit is contained in:
Rizky 2024-07-22 11:16:13 +07:00
parent d51bdad679
commit 70965ed3cf
1 changed files with 17 additions and 15 deletions

View File

@ -170,6 +170,7 @@ export const EdPopPage = () => {
select: { id: true }, select: { id: true },
}); });
} else { } else {
if (opt.dropTargetId !== opt.dragSourceId) {
await _db.page_folder.update({ await _db.page_folder.update({
where: { where: {
id: opt.dragSourceId as string, id: opt.dragSourceId as string,
@ -184,8 +185,9 @@ export const EdPopPage = () => {
id: true, id: true,
}, },
}); });
}
reloadPagePicker(p); reloadPagePicker(p);
}
}
}} }}
dragPreviewRender={() => <></>} dragPreviewRender={() => <></>}
canDrag={() => true} canDrag={() => true}