Merge remote-tracking branch 'origin/angular-13' into angular-14
This commit is contained in:
commit
bf779e922d
|
@ -226,7 +226,7 @@ export class BulkClaimComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
makeFileRequest(url: string, params: Array<string>, files: Array<File>) {
|
makeFileRequest(url: string, params: Array<string>, files: Array<File>) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise<void>((resolve, reject) => {
|
||||||
const formData: any = new FormData();
|
const formData: any = new FormData();
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
for (let i = 0; i < files.length; i++) {
|
for (let i = 0; i < files.length; i++) {
|
||||||
|
|
|
@ -210,7 +210,7 @@ export class SearchResearchResultsComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
racePromiseWithTimeout() {
|
racePromiseWithTimeout() {
|
||||||
const timeoutPromise = new Promise((_, reject) => {
|
const timeoutPromise = new Promise<void>((_, reject) => {
|
||||||
this.timeoutId = setTimeout(() => {
|
this.timeoutId = setTimeout(() => {
|
||||||
this.publicCommunities = [];
|
this.publicCommunities = [];
|
||||||
reject(new Error('Request timed out'));
|
reject(new Error('Request timed out'));
|
||||||
|
|
Loading…
Reference in New Issue