Revert "Replace Promise.delay with promise utils sleep"
This reverts commit 0a21957b
This commit is contained in:
parent
168b1b68bb
commit
f9d6ed63f0
4 changed files with 9 additions and 13 deletions
|
@ -32,7 +32,6 @@ import * as Email from '../../../email';
|
|||
import IdentityAuthClient from '../../../IdentityAuthClient';
|
||||
import { getDefaultIdentityServerUrl, useDefaultIdentityServer } from '../../../utils/IdentityServerUtils';
|
||||
import { abbreviateUrl } from '../../../utils/UrlUtils';
|
||||
import {sleep} from "../../../utils/promise";
|
||||
|
||||
const TRUNCATE_QUERY_LIST = 40;
|
||||
const QUERY_USER_DIRECTORY_DEBOUNCE_MS = 200;
|
||||
|
@ -534,7 +533,7 @@ module.exports = createReactClass({
|
|||
};
|
||||
|
||||
// wait a bit to let the user finish typing
|
||||
await sleep(500);
|
||||
await Promise.delay(500);
|
||||
if (cancelled) return null;
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue