aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/create/project
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2022-12-16 16:14:53 +0100
committersonartech <sonartech@sonarsource.com>2022-12-19 20:02:46 +0000
commit416df50ac7d403213f16ae9961e253e6151de728 (patch)
treeec01705a98254e58f26708463744bde09c913695 /server/sonar-web/src/main/js/apps/create/project
parent3f65d60733e6f1f25dff5cd4ea09045886ff1cc3 (diff)
downloadsonarqube-416df50ac7d403213f16ae9961e253e6151de728.tar.gz
sonarqube-416df50ac7d403213f16ae9961e253e6151de728.zip
[NO JIRA] Upgrade patch version of dependencies
Diffstat (limited to 'server/sonar-web/src/main/js/apps/create/project')
-rw-r--r--server/sonar-web/src/main/js/apps/create/project/ManualProjectCreate.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/create/project/ManualProjectCreate.tsx b/server/sonar-web/src/main/js/apps/create/project/ManualProjectCreate.tsx
index b41e6afcb32..b497ed89ac4 100644
--- a/server/sonar-web/src/main/js/apps/create/project/ManualProjectCreate.tsx
+++ b/server/sonar-web/src/main/js/apps/create/project/ManualProjectCreate.tsx
@@ -57,6 +57,8 @@ interface State {
submitting: boolean;
}
+const DEBOUNCE_DELAY = 250;
+
type ValidState = State & Required<Pick<State, 'projectKey' | 'projectName'>>;
export default class ManualProjectCreate extends React.PureComponent<Props, State> {
@@ -74,7 +76,7 @@ export default class ManualProjectCreate extends React.PureComponent<Props, Stat
mainBranchNameTouched: false,
validatingProjectKey: false,
};
- this.checkFreeKey = debounce(this.checkFreeKey, 250);
+ this.checkFreeKey = debounce(this.checkFreeKey, DEBOUNCE_DELAY);
}
componentDidMount() {
@@ -97,7 +99,7 @@ export default class ManualProjectCreate extends React.PureComponent<Props, Stat
checkFreeKey = (key: string) => {
this.setState({ validatingProjectKey: true });
- return doesComponentExists({ component: key })
+ doesComponentExists({ component: key })
.then((alreadyExist) => {
if (this.mounted && key === this.state.projectKey) {
this.setState({