mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 13:50:07 +00:00
remove react old defaultProps (#7576)
This commit is contained in:
@@ -30,10 +30,6 @@ const propTypes = {
|
||||
|
||||
class FileUploader extends React.Component {
|
||||
|
||||
static defaultProps = {
|
||||
isCustomPermission: false
|
||||
};
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
@@ -179,7 +175,7 @@ class FileUploader extends React.Component {
|
||||
};
|
||||
|
||||
onFileAdded = (resumableFile, files) => {
|
||||
const { isCustomPermission } = this.props;
|
||||
const { isCustomPermission = false } = this.props;
|
||||
let isFile = resumableFile.fileName === resumableFile.relativePath;
|
||||
// uploading is file and only upload one file
|
||||
if (isFile && files.length === 1) {
|
||||
|
Reference in New Issue
Block a user