mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
[wiki] change drag page into another page (#6422)
* 01 change drag page into another page * 02 delete useless codes * update move page * fix invalid position * delete useless codes --------- Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
This commit is contained in:
@@ -89,8 +89,7 @@ class SidePanel extends Component {
|
||||
movePage = ({ moved_page_id, target_page_id, move_position }) => {
|
||||
let config = deepCopy(this.props.config);
|
||||
let { navigation } = config;
|
||||
PageUtils.movePage(navigation, moved_page_id, target_page_id, move_position);
|
||||
config.navigation = navigation;
|
||||
config.navigation = PageUtils.movePage(navigation, moved_page_id, target_page_id, move_position);
|
||||
JSON.stringify(config);
|
||||
this.props.updateWikiConfig(config);
|
||||
};
|
||||
|
Reference in New Issue
Block a user