@imposium-hub/components 1.24.0 → 1.24.1

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.
@@ -354,7 +354,7 @@ class StoryPreviewer extends React.PureComponent<IStoryPreviewerProps, IStoryPre
354
354
  }
355
355
  }
356
356
 
357
- private getExperience(experienceId, triggerJob = false) {
357
+ private getExperience(experienceId, triggerJob = false, compositionId ? : string) {
358
358
 
359
359
  if (!this.timer.running) {
360
360
  this.timer.start();
@@ -370,7 +370,7 @@ class StoryPreviewer extends React.PureComponent<IStoryPreviewerProps, IStoryPre
370
370
  }, () => {
371
371
 
372
372
  if (triggerJob) {
373
- api.triggerEvent(experienceId).then((resTrigger) => {
373
+ api.triggerEvent(experienceId, compositionId).then((resTrigger) => {
374
374
 
375
375
  this.setState({
376
376
  jobId: resTrigger.job_id
@@ -470,7 +470,7 @@ class StoryPreviewer extends React.PureComponent<IStoryPreviewerProps, IStoryPre
470
470
  onExperienceCreated(resExp);
471
471
  }
472
472
 
473
- this.getExperience(resExp.id, true);
473
+ this.getExperience(resExp.id, true, compositionId);
474
474
 
475
475
  }).catch((e) => {
476
476
  this.resetState();