aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-06-12 10:06:48 +0200
committerSonarTech <sonartech@sonarsource.com>2018-06-12 20:21:05 +0200
commitfa49b08e4081281cc7a9cac060e13479225c4d59 (patch)
tree59cc8ced0028d24a1a77e680741aedbf48283511 /server/sonar-web
parentbac6a9b4f3480ae6f14c060f08be5cf5d8f0d064 (diff)
downloadsonarqube-fa49b08e4081281cc7a9cac060e13479225c4d59.tar.gz
sonarqube-fa49b08e4081281cc7a9cac060e13479225c4d59.zip
fix workers form by not using lodash#times shorthand
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/WorkersForm.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/WorkersForm.tsx b/server/sonar-web/src/main/js/apps/background-tasks/components/WorkersForm.tsx
index 52d5eee1094..c36c882e7ca 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/WorkersForm.tsx
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/WorkersForm.tsx
@@ -18,7 +18,6 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import * as React from 'react';
-import { times } from 'lodash';
import { setWorkerCount } from '../../../api/ce';
import Modal from '../../../components/controls/Modal';
import Select from '../../../components/controls/Select';
@@ -82,7 +81,10 @@ export default class WorkersForm extends React.PureComponent<Props, State> {
};
render() {
- const options = times(MAX_WORKERS).map((_, i) => ({ label: String(i + 1), value: i + 1 }));
+ const options = [];
+ for (let i = 1; i <= MAX_WORKERS; i++) {
+ options.push({ label: String(i), value: i });
+ }
return (
<Modal