From 416df50ac7d403213f16ae9961e253e6151de728 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Fri, 16 Dec 2022 16:14:53 +0100 Subject: [NO JIRA] Upgrade patch version of dependencies --- .../src/main/js/apps/create/project/ManualProjectCreate.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'server/sonar-web/src/main/js/apps/create/project') 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>; export default class ManualProjectCreate extends React.PureComponent { @@ -74,7 +76,7 @@ export default class ManualProjectCreate extends React.PureComponent { this.setState({ validatingProjectKey: true }); - return doesComponentExists({ component: key }) + doesComponentExists({ component: key }) .then((alreadyExist) => { if (this.mounted && key === this.state.projectKey) { this.setState({ -- cgit v1.2.3