@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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/service.ts +5 -5
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,
|
|
397
|
+
storage.add(variableId, result.variable);
|
|
398
398
|
} else {
|
|
399
|
-
storage.update(variableId,
|
|
399
|
+
storage.update(variableId, result.variable);
|
|
400
400
|
}
|
|
401
401
|
styleVariablesRepository.update({
|
|
402
|
-
[variableId]:
|
|
402
|
+
[variableId]: result.variable
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
405
|
});
|