@elementor/editor-variables 4.1.0-691 → 4.1.0-693

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/dist/index.js CHANGED
@@ -435,15 +435,15 @@ var service = {
435
435
  handleWatermark(OP_RW, watermark);
436
436
  if (results) {
437
437
  results.forEach((result) => {
438
+ const variableId = result.id;
438
439
  if (result.variable) {
439
- const { id: variableId, ...variableData } = result.variable;
440
440
  if (result.type === "create") {
441
- storage.add(variableId, variableData);
441
+ storage.add(variableId, result.variable);
442
442
  } else {
443
- storage.update(variableId, variableData);
443
+ storage.update(variableId, result.variable);
444
444
  }
445
445
  styleVariablesRepository.update({
446
- [variableId]: variableData
446
+ [variableId]: result.variable
447
447
  });
448
448
  }
449
449
  });