1
0
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:
Michael An
2024-07-18 11:58:42 +08:00
committed by GitHub
parent c5d02b33b2
commit 67210c7363
450 changed files with 2425 additions and 2385 deletions

View File

@@ -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>