mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-21 03:18:23 +00:00
fix code format (#6365)
This commit is contained in:
@@ -61,7 +61,7 @@ class LabelRepoStateDialog extends React.Component {
|
||||
submitBtnDisabled: true
|
||||
});
|
||||
|
||||
const {repoID, repoName} = this.props;
|
||||
const { repoID, repoName } = this.props;
|
||||
const labels = inputValue.map((item, index) => item.value).join(',');
|
||||
seafileAPI.addNewRepoLabels(repoID, labels).then((res) => {
|
||||
const msg = gettext('Successfully added label(s) for library {placeholder}').replace('{placeholder}', repoName);
|
||||
@@ -113,7 +113,7 @@ class Content extends React.Component {
|
||||
isMulti={true}
|
||||
onChange={this.props.handleChange}
|
||||
placeholder=''
|
||||
options={existingLabels.map((item, index) => { return {label: item, value: item}; })}
|
||||
options={existingLabels.map((item, index) => { return { label: item, value: item }; })}
|
||||
/>
|
||||
{formErrorMsg && <p className="error m-0 mt-2">{formErrorMsg}</p>}
|
||||
</React.Fragment>
|
||||
|
Reference in New Issue
Block a user