forked from ryanmwangi/CalMerger
filter out failed requests
This commit is contained in:
parent
35b9284a7a
commit
9b297aa0fd
1 changed files with 2 additions and 0 deletions
|
@ -114,6 +114,8 @@ async function updateMergedCalendar(){
|
|||
});
|
||||
|
||||
const results = await Promise.all(promises);
|
||||
// Filter out any failed requests
|
||||
const validResults = results.filter((result) => result !== null);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue