From 8ed319d624e7b94fd8ead3b39e9d95f34ed62eae Mon Sep 17 00:00:00 2001
From: zaultavangar <zaul_tavangar@brown.edu>
Date: Sat, 16 Dec 2023 17:57:50 -0500
Subject: trying to fix package.json inconsistency with previous push

---
 src/client/util/CalendarManager.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/client/util/CalendarManager.tsx')

diff --git a/src/client/util/CalendarManager.tsx b/src/client/util/CalendarManager.tsx
index e471db7c6..15c811e91 100644
--- a/src/client/util/CalendarManager.tsx
+++ b/src/client/util/CalendarManager.tsx
@@ -160,7 +160,10 @@ export class CalendarManager extends React.Component<{}> {
 
             Doc.AddDocToList(calendar, 'data', subDocEmbedding); // add embedded subDoc to calendar
             
-            Doc.AddDocToList(Doc.MyCalendars, 'data', calendar); // add to dashboard calendars
+            if (this.creationType === 'new-calendar'){
+                Doc.AddDocToList(Doc.MyCalendars, 'data', calendar); // add to new calendar to dashboard calendars
+            }
+            
             
         }
 
-- 
cgit v1.2.3-70-g09d2

