roboto-js 1.6.10 → 1.6.11
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/cjs/rbt_object.cjs +4 -0
- package/dist/esm/rbt_object.js +4 -0
- package/package.json +1 -1
- package/src/rbt_object.js +4 -0
package/dist/cjs/rbt_object.cjs
CHANGED
|
@@ -296,6 +296,10 @@ var RbtObject = exports["default"] = /*#__PURE__*/function () {
|
|
|
296
296
|
delete clonedData.id;
|
|
297
297
|
delete clonedData.id_revision;
|
|
298
298
|
delete clonedData.rpcMeta;
|
|
299
|
+
if (clonedData.data) {
|
|
300
|
+
delete clonedData.data.id;
|
|
301
|
+
delete clonedData.data.id_revision;
|
|
302
|
+
}
|
|
299
303
|
|
|
300
304
|
// Create a new instance of RbtObject with the cloned data
|
|
301
305
|
var clonedObject = new RbtObject(clonedData, this._axios, {
|
package/dist/esm/rbt_object.js
CHANGED
|
@@ -204,6 +204,10 @@ export default class RbtObject {
|
|
|
204
204
|
delete clonedData.id;
|
|
205
205
|
delete clonedData.id_revision;
|
|
206
206
|
delete clonedData.rpcMeta;
|
|
207
|
+
if (clonedData.data) {
|
|
208
|
+
delete clonedData.data.id;
|
|
209
|
+
delete clonedData.data.id_revision;
|
|
210
|
+
}
|
|
207
211
|
|
|
208
212
|
// Create a new instance of RbtObject with the cloned data
|
|
209
213
|
const clonedObject = new RbtObject(clonedData, this._axios, {
|
package/package.json
CHANGED
package/src/rbt_object.js
CHANGED
|
@@ -226,6 +226,10 @@ export default class RbtObject{
|
|
|
226
226
|
delete clonedData.id;
|
|
227
227
|
delete clonedData.id_revision;
|
|
228
228
|
delete clonedData.rpcMeta;
|
|
229
|
+
if(clonedData.data){
|
|
230
|
+
delete clonedData.data.id;
|
|
231
|
+
delete clonedData.data.id_revision;
|
|
232
|
+
}
|
|
229
233
|
|
|
230
234
|
// Create a new instance of RbtObject with the cloned data
|
|
231
235
|
const clonedObject = new RbtObject(clonedData, this._axios, { isNew: true });
|