@capillarytech/creatives-library 8.0.287-alpha.1 → 8.0.287-alpha.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.287-alpha.1",
4
+ "version": "8.0.287-alpha.2",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -141,7 +141,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
141
141
  }
142
142
 
143
143
  componentWillReceiveProps(nextProps) {
144
- if (nextProps.location.query.module === 'library' && nextProps.isGetFormData) {
144
+ if (!nextProps.isFullMode && nextProps.isGetFormData) {
145
145
  // Trigger validation first; response will be sent in setFormValidity callback so pasted content is validated
146
146
  this.setState({ startValidation: true, pendingGetFormData: true });
147
147
  // Fallback: if FormBuilder never calls onFormValidityChange (e.g. early return), still respond to parent
@@ -135,7 +135,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
135
135
  }
136
136
 
137
137
  componentWillReceiveProps(nextProps) {
138
- if (nextProps.location.query.module === 'library' && nextProps.isGetFormData) {
138
+ if (!nextProps.isFullMode && nextProps.isGetFormData) {
139
139
  this.setState({ startValidation: true, pendingGetFormData: true });
140
140
  this.pendingGetFormDataTimeout = setTimeout(() => {
141
141
  if (this.state.pendingGetFormData && this.props.getFormSubscriptionData) {