1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 07:27:04 +00:00
This commit is contained in:
MichaelAn
2018-11-14 13:15:52 +08:00
committed by Daniel Pan
parent 481a8491b9
commit 7c473da983
2 changed files with 3 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ class AddReviewerDialog extends React.Component {
addReviewers = () => {
if (this.state.selectedOption.length > 0 ) {
this.refs.reviewSelect.select.onChange([], { action: 'clear' });
let reviewers = [];
for (let i = 0; i < this.state.selectedOption.length; i ++) {
reviewers[i] = this.state.selectedOption[i].email;
@@ -103,6 +104,7 @@ class AddReviewerDialog extends React.Component {
loadOptions={this.loadOptions}
placeholder={gettext('Please enter 1 or more character')}
onChange={this.handleSelectChange}
ref="reviewSelect" isClearable classNamePrefix
/>
{this.state.errorMsg.length > 0 &&
this.state.errorMsg.map((item, index = 0, arr) => {