Skip to content

Commit

Permalink
1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
unematiii committed Feb 14, 2023
1 parent 6960570 commit 322e439
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@highmobility/auto-api-javascript",
"version": "1.3.0",
"version": "1.3.1",
"description": "Auto API for JavaScript - the parsing library for the Auto API vehicle data model",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/core/Property.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ export class Property extends Serializable implements NamedEntity {
public isInstanceOf(property: Property) {
const { identityKey, multiple } = property;
if (property instanceof Object.getPrototypeOf(this).constructor) {
if (multiple && identityKey) {
if ([this, property].every((p) => p.hasComponent('data'))) {
if (multiple) {
if (identityKey && [this, property].every((p) => p.hasComponent('data'))) {
const [a, b] = [this, property].map((p) => p.valueOf() || {});
return comparePropertyIdentity(a, b, identityKey);
}
Expand Down

0 comments on commit 322e439

Please sign in to comment.