@capillarytech/creatives-library 7.17.151 → 7.17.152

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": "7.17.151",
4
+ "version": "7.17.152",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -197,7 +197,11 @@ class Ckeditor extends React.Component { // eslint-disable-line react/prefer-sta
197
197
  }
198
198
  this.setState({ content }, () => {
199
199
  if (this.editorInstance) {
200
- this.editorInstance.setData(content);
200
+ // Check if the current editor content is different from the new content
201
+ const currentEditorData = this.editorInstance.getData();
202
+ if (currentEditorData !== content) {
203
+ this.editorInstance.setData(content);
204
+ }
201
205
  }
202
206
  });
203
207
  }