@sprucelabs/spruce-calendar-components 22.1.1 → 22.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -197,10 +197,11 @@ export class CalendarEventManager {
|
|
|
197
197
|
}
|
|
198
198
|
setupVcForEventType(vcId, typeSlug) {
|
|
199
199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
-
|
|
200
|
+
const key = vcId + typeSlug;
|
|
201
|
+
if (this.hasVcForEventTypeBeenLoaded[key]) {
|
|
201
202
|
return;
|
|
202
203
|
}
|
|
203
|
-
this.hasVcForEventTypeBeenLoaded[
|
|
204
|
+
this.hasVcForEventTypeBeenLoaded[key] = true;
|
|
204
205
|
yield this.remoteVc.fetchRemoteController(vcId);
|
|
205
206
|
this.calendarVc.setControllerForEventType(typeSlug, vcId);
|
|
206
207
|
});
|
|
@@ -173,10 +173,11 @@ class CalendarEventManager {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
async setupVcForEventType(vcId, typeSlug) {
|
|
176
|
-
|
|
176
|
+
const key = vcId + typeSlug;
|
|
177
|
+
if (this.hasVcForEventTypeBeenLoaded[key]) {
|
|
177
178
|
return;
|
|
178
179
|
}
|
|
179
|
-
this.hasVcForEventTypeBeenLoaded[
|
|
180
|
+
this.hasVcForEventTypeBeenLoaded[key] = true;
|
|
180
181
|
await this.remoteVc.fetchRemoteController(vcId);
|
|
181
182
|
this.calendarVc.setControllerForEventType(typeSlug, vcId);
|
|
182
183
|
}
|