@c8y/ngx-components 1017.0.22 → 1017.0.24

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.
@@ -1435,10 +1435,16 @@ class ContextDashboardComponent {
1435
1435
  * @param selected Define a selected component to switch to edit mode directly.
1436
1436
  */
1437
1437
  async addWidget(selected) {
1438
+ const partialCloneSelected = selected
1439
+ ? {
1440
+ ...selected,
1441
+ data: cloneDeep(selected.data)
1442
+ }
1443
+ : selected;
1438
1444
  const initialState = {
1439
1445
  mo: this.mo,
1440
1446
  context: this.context.c8y_Report ? {} : this.context,
1441
- selected: cloneDeep(selected)
1447
+ selected: partialCloneSelected
1442
1448
  };
1443
1449
  const modal = this.bsModal.show(WidgetConfigComponent, {
1444
1450
  class: 'modal-lg',