mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-22 02:04:31 +00:00
Merge pull request #14973 from overleaf/jpa-fix-reject-error
[web] history pane: fix reject with undefined error GitOrigin-RevId: a08ee2e6d9ff60d50c9f4b033259d19dc9f58a6d
This commit is contained in:
parent
45ca0f796c
commit
06f05d896f
1 changed files with 4 additions and 4 deletions
|
@ -9,11 +9,11 @@ export function waitFor<T>(
|
|||
return new Promise<T>((resolve, reject) => {
|
||||
const tryIteration = () => {
|
||||
if (iterations > iterationLimit) {
|
||||
reject(
|
||||
console.error(
|
||||
`waiting too long, ${JSON.stringify({ timeout, pollInterval })}`
|
||||
)
|
||||
const err = new Error(
|
||||
`waiting too long, ${JSON.stringify({ timeout, pollInterval })}`
|
||||
)
|
||||
console.error(err)
|
||||
reject(err)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue