Fixing calWarnings error on reschedule (#5711)
* Fixing calWarnings error on reschedule * Update packages/core/CalendarManager.ts Co-authored-by: Alex van Andel <[email protected]> * Update packages/core/CalendarManager.ts Co-authored-by: Alex van Andel <[email protected]> * Going back on potential fix Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
1 parent
9a12b5a0ac
commit
1f74fc394a
1 file changed
+2
-2
@@ -267,9 +267,9 @@ export const updateEvent = async (
|
||||
: undefined;
|
||||
|
||||
if (Array.isArray(updatedResult)) {
|
||||
calWarnings = updatedResult.flatMap((res) => res.additionalInfo.calWarnings ?? []);
|
||||
calWarnings = updatedResult.flatMap((res) => res.additionalInfo?.calWarnings ?? []);
|
||||
} else {
|
||||
calWarnings = updatedResult?.additionalInfo.calWarnings;
|
||||
calWarnings = updatedResult?.additionalInfo?.calWarnings || [];
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user