diff --git a/admin/themes/default/js/cat_move.js b/admin/themes/default/js/cat_move.js index f60914c28..17b33d988 100644 --- a/admin/themes/default/js/cat_move.js +++ b/admin/themes/default/js/cat_move.js @@ -200,6 +200,9 @@ function applyMove(event) { } moveRank = 1; } else if (event.move_info.position == 'before') { + if (moveParent == null) { + moveParent = 0 + } moveRank = 1; } moveNode(id, moveRank, moveParent).then(() => {