@imposium-hub/components 1.41.5 → 1.41.7

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.
@@ -37,6 +37,7 @@ interface IPublishWizardProps {
37
37
  importBatchFromCsv : (storyId : string, batchId : string, batchName : string, csvFile : File, accessKey : string, compId : string, addEmbed : boolean, addMedia : boolean) => any;
38
38
  handleNotification? : (n) => void;
39
39
  batchJobs : any;
40
+ activeComposition : string;
40
41
  renderBatch : (batchId : string, batchName ? : string) => any;
41
42
  }
42
43
 
@@ -96,12 +97,14 @@ class PublishWizard extends React.PureComponent<IPublishWizardProps, IPublishWiz
96
97
 
97
98
  public componentDidMount() {
98
99
 
99
- const {story, api, handleError} = this.props;
100
+ const {story, api, handleError, activeComposition} = this.props;
100
101
 
101
102
  // Pull in all of the access creds for the composition dropdown
102
103
  api.getAssets({type: ASSET_TYPES.VIDEO_COMPOSITION}, story.id).then((res) => {
104
+ const firstCompId = (res.assets[0]) ? res.assets[0].id : null;
103
105
  this.setState({
104
- compositions: res.assets
106
+ compositions: res.assets,
107
+ selectedComposition: (activeComposition) ? activeComposition : firstCompId
105
108
  });
106
109
  }).catch((credsError) => {
107
110
  handleError(copy.integration.errorPullingComps);
@@ -139,6 +139,7 @@ class EmailWorkflow extends React.PureComponent<IEmailWorkflowProps, IEmailWorkf
139
139
  if (status === 400) {
140
140
  handleError(copy.publish.missingColumns);
141
141
  alert(copy.publish.csvMissingColumns + data.error);
142
+ this.hiddenFileInputRef.current.value = '';
142
143
  }
143
144
  this.setState({uploadComplete: false, uploading: false});
144
145
  throw e;