Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit 5af632a

Browse files
committed
Don't overwrite propertiess
1 parent cbd4802 commit 5af632a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/resources/base/ResourceBase.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ export default class ResourceBase extends mix(null, Injectable) {
7979
this._properties = {};
8080
this._api = api;
8181

82-
const fields = Object.keys(this._baseProperties);
82+
const fields = Object.keys(this._baseProperties)
83+
.filter(field => !Object.prototype.hasOwnProperty.call(this, field));
8384

8485
// Apply properties
8586
for (const key of fields) {

0 commit comments

Comments
 (0)