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

Commit 6f3c3bc

Browse files
committed
Fix not overwriting existing properties
1 parent 8b89238 commit 6f3c3bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/base/ResourceBase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default class ResourceBase extends mix(null, Injectable) {
8080
this._api = api;
8181

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

8585
// Apply properties
8686
for (const key of fields) {

0 commit comments

Comments
 (0)