Skip to content

Commit

Permalink
Fix drag end
Browse files Browse the repository at this point in the history
  • Loading branch information
elektronaut committed Sep 3, 2024
1 parent 6112d49 commit c829cdf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/assets/builds/pages_core/admin-dist.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions app/assets/builds/pages_core/admin-dist.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/javascript/components/PageTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ export default function PageTree({ dir, locale, pages, permissions }: Props) {
const dragEnd = useCallback(() => {
if (dragging) {
movePage(dragState.tree, dragState.id, dispatch);
setDragState(null);
setDragging(false);
}
setDragState(null);
}, [dragging, dragState, dispatch]);

useEffect(() => {
Expand Down

0 comments on commit c829cdf

Please sign in to comment.