@capillarytech/creatives-library 3.8.8 → 3.8.9

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "3.8.8",
4
+ "version": "3.8.9",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -2901,7 +2901,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
2901
2901
  let moduleFilterEnabled = this.props.location && this.props.location.query && this.props.location.query.type !== 'embedded';
2902
2902
  const channel = _.get(this.props, 'schema.channel', "");
2903
2903
  if (channel === 'EMAIL') {
2904
- moduleFilterEnabled = this.props.location && this.props.location.query && this.props.location.query.module === 'library';
2904
+ moduleFilterEnabled = this.props.isFullMode;
2905
2905
  }
2906
2906
  columns.push(
2907
2907
  <CapColumn key={`input-${val.id}`} offset={val.offset} span={val.width ? val.width : ''} style={val.style ? val.style : {marginBottom: '16px'}}>
@@ -3478,6 +3478,7 @@ FormBuilder.propTypes = {
3478
3478
  selectedOfferDetails: PropTypes.array,
3479
3479
  setDrawerVisibility: PropTypes.bool,
3480
3480
  capDrawerContent: PropTypes.array,
3481
+ isFullMode: PropTypes.bool,
3481
3482
  };
3482
3483
 
3483
3484
  export default injectIntl(FormBuilder);