|
|
@@ -115,7 +115,6 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
onRenamed, onClickDuplicateMenuItem, onClickDeleteMenuItem, isEnableActions,
|
|
|
} = props;
|
|
|
|
|
|
- const { isUsersTopPage, isUsersHomePage } = pagePathUtils;
|
|
|
const { page, children } = itemNode;
|
|
|
|
|
|
const [currentChildren, setCurrentChildren] = useState(children);
|
|
|
@@ -153,7 +152,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
type: 'PAGE_TREE',
|
|
|
item: { page },
|
|
|
canDrag: () => {
|
|
|
- const isDraggable = !isUsersTopPage(page.path ?? '/') && !isUsersHomePage(page.path ?? '/');
|
|
|
+ const isDraggable = !pagePathUtils.isUsersProtectedPages(page.path ?? '');
|
|
|
return isDraggable;
|
|
|
},
|
|
|
end: (item, monitor) => {
|