@elementor/editor-variables 4.1.0-692 → 4.1.0-694

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.mjs CHANGED
@@ -391,15 +391,15 @@ var service = {
391
391
  handleWatermark(OP_RW, watermark);
392
392
  if (results) {
393
393
  results.forEach((result) => {
394
+ const variableId = result.id;
394
395
  if (result.variable) {
395
- const { id: variableId, ...variableData } = result.variable;
396
396
  if (result.type === "create") {
397
- storage.add(variableId, variableData);
397
+ storage.add(variableId, result.variable);
398
398
  } else {
399
- storage.update(variableId, variableData);
399
+ storage.update(variableId, result.variable);
400
400
  }
401
401
  styleVariablesRepository.update({
402
- [variableId]: variableData
402
+ [variableId]: result.variable
403
403
  });
404
404
  }
405
405
  });