1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

optimize code

This commit is contained in:
shanshuirenjia
2022-05-13 13:26:31 +08:00
parent e8ba33d61c
commit 22d8198706
3 changed files with 2 additions and 3 deletions

View File

@@ -51,7 +51,6 @@ class HeaderToolbar extends React.Component {
}
render() {
console.log('aaa');
let { contentChanged, saving, isLocked, lockedByMe } = this.props;
let canPublishDraft = this.props.fileInfo.permission == 'rw';
let canCreateDraft = canPublishDraft && (!this.props.hasDraft && !this.props.isDraft && this.props.isDocs);