@imposium-hub/components 1.42.0 → 1.42.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.
@@ -103,20 +103,11 @@ class PublishWizard extends React.PureComponent<IPublishWizardProps, IPublishWiz
103
103
  // Pull in all of the access creds for the composition dropdown
104
104
  api.getAssets({type: ASSET_TYPES.VIDEO_COMPOSITION}, story.id).then((res) => {
105
105
  const firstCompId = (res.assets[0]) ? res.assets[0].id : null;
106
+ const compId = (activeComposition) ? activeComposition : firstCompId;
106
107
  this.setState({
107
108
  compositions: res.assets,
108
- selectedComposition: (activeComposition) ? activeComposition : firstCompId
109
+ selectedComposition: compId
109
110
  });
110
- if (res.assets.length > 0) {
111
- const comp = res.assets[0];
112
- const composition = {
113
- value: comp.id,
114
- label: comp.name
115
- };
116
- this.setState({
117
- selectedComposition: composition
118
- });
119
- }
120
111
  }).catch((credsError) => {
121
112
  handleError(copy.integration.errorPullingComps);
122
113
  });