diff --git a/Samples-Typescript/Filtering/filtering.ts b/Samples-Typescript/Filtering/filtering.ts index 58d397d6..8f3ebdde 100644 --- a/Samples-Typescript/Filtering/filtering.ts +++ b/Samples-Typescript/Filtering/filtering.ts @@ -163,7 +163,7 @@ import { // Same pattern as in fetchFilters, wait until all promises have finished // before updating the UI state. - await Promise.all(filterClearPromises); + await Promise.allSettled(filterClearPromises); this.updateUIState(false); }); }, this); diff --git a/Samples/Filtering/filtering.js b/Samples/Filtering/filtering.js index beb88c44..1a5945d9 100644 --- a/Samples/Filtering/filtering.js +++ b/Samples/Filtering/filtering.js @@ -144,7 +144,7 @@ // Same pattern as in fetchFilters, wait until all promises have finished // before updating the UI state. - Promise.all(filterClearPromises).then(function () { + Promise.allSettled(filterClearPromises).then(function () { updateUIState(false); }); }); diff --git a/package.json b/package.json index 62a5bcb5..3c9026f5 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "semistandard": "^11.0.0", "ts-loader": "^5.4.5", "tslint": "^5.16.0", - "typescript": "^3.4.5", + "typescript": "^3.9.10", "webpack": "^4.30.0", "webpack-cli": "^3.3.1" },