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