vc-create-dashboard 2.0.6 → 2.0.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.
@@ -1154,7 +1154,8 @@
1154
1154
  }
1155
1155
  });
1156
1156
  this.dashboardForm.configureWidget.forEach(function (savedWidget) {
1157
- if (!JSON.stringify(data).includes(savedWidget.widget_code)) {
1157
+ var index = data.findIndex(function (dataElement) { return dataElement.id == savedWidget.widget_code; });
1158
+ if (index == -1) {
1158
1159
  savedWidget.state = 'INACTIVE';
1159
1160
  if (savedWidget.sub_widgets.length > 0) {
1160
1161
  savedWidget.subWidgets.forEach(function (saveSubWidget) {