1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

change wiki page no name (#6795)

This commit is contained in:
Michael An
2024-09-19 20:34:34 +08:00
committed by GitHub
parent 26cdff0f29
commit fff51af6a8
4 changed files with 9 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ import wikiAPI from '../../utils/wiki-api';
import { Utils } from '../../utils/utils';
import WikiExternalOperations from './wiki-external-operations';
import WikiTrashDialog from './wiki-trash-dialog';
import { DEFAULT_PAGE_NAME } from './constant';
import './side-panel.css';
@@ -131,7 +132,7 @@ class SidePanel extends Component {
};
// default page name
handleAddNewPage = (jumpToNewPage = true, pageName = 'Untitled') => {
handleAddNewPage = (jumpToNewPage = true, pageName = DEFAULT_PAGE_NAME) => {
if (this.isAddingPage === true) return;
this.isAddingPage = true;
wikiAPI.createWiki2Page(wikiId, pageName).then(res => {