@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
- if (this.hasVcForEventTypeBeenLoaded[vcId]) {
200
+ const key = vcId + typeSlug;
201
+ if (this.hasVcForEventTypeBeenLoaded[key]) {
201
202
  return;
202
203
  }
203
- this.hasVcForEventTypeBeenLoaded[vcId] = true;
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
- if (this.hasVcForEventTypeBeenLoaded[vcId]) {
176
+ const key = vcId + typeSlug;
177
+ if (this.hasVcForEventTypeBeenLoaded[key]) {
177
178
  return;
178
179
  }
179
- this.hasVcForEventTypeBeenLoaded[vcId] = true;
180
+ this.hasVcForEventTypeBeenLoaded[key] = true;
180
181
  await this.remoteVc.fetchRemoteController(vcId);
181
182
  this.calendarVc.setControllerForEventType(typeSlug, vcId);
182
183
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-calendar-components",
3
3
  "description": "Calendar components for working with calendars and Sprucebot.",
4
- "version": "22.1.1",
4
+ "version": "22.1.2",
5
5
  "skill": {
6
6
  "namespace": "calendar"
7
7
  },