diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-08-16 12:39:05 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-08-17 16:42:34 +0200 |
commit | eae2f0df4ef757c0c8fb92e49e808e5feace167b (patch) | |
tree | 15955463850ea50f510a944b02e3e5f9e0d4e8dc /server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.js | |
parent | 8f016916eafb2052e472ba8eba78d0e7db4b5210 (diff) | |
download | sonarqube-eae2f0df4ef757c0c8fb92e49e808e5feace167b.tar.gz sonarqube-eae2f0df4ef757c0c8fb92e49e808e5feace167b.zip |
SONAR-9605 Fix infinite spinner on issues page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.js b/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.js index e5002e86251..a0ce352c35b 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.js +++ b/server/sonar-web/src/main/js/apps/issues/components/BulkChangeModal.js @@ -29,6 +29,7 @@ import MarkdownTips from '../../../components/common/MarkdownTips'; import SeverityHelper from '../../../components/shared/SeverityHelper'; import Avatar from '../../../components/ui/Avatar'; import IssueTypeIcon from '../../../components/ui/IssueTypeIcon'; +import throwGlobalError from '../../../app/utils/throwGlobalError'; import { searchIssueTags, bulkChangeIssues } from '../../../api/issues'; import { translate, translateWithParameters } from '../../../helpers/l10n'; import { searchAssignees } from '../utils'; @@ -42,7 +43,6 @@ type Props = {| fetchIssues: ({}) => Promise<*>, onClose: () => void, onDone: () => void, - onRequestFail: Error => void, organization?: { key: string } |}; */ @@ -200,7 +200,7 @@ export default class BulkChangeModal extends React.PureComponent { }, (error /*: Error */) => { this.setState({ submitting: false }); - this.props.onRequestFail(error); + throwGlobalError(error); } ); }; |