forked from ryanmwangi/CalMerger
filter out failed requests
This commit is contained in:
parent
35b9284a7a
commit
9b297aa0fd
|
@ -114,6 +114,8 @@ async function updateMergedCalendar(){
|
||||||
});
|
});
|
||||||
|
|
||||||
const results = await Promise.all(promises);
|
const results = await Promise.all(promises);
|
||||||
|
// Filter out any failed requests
|
||||||
|
const validResults = results.filter((result) => result !== null);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue