Skip to content

Commit 322e439

Browse files
committed
1.3.1
1 parent 6960570 commit 322e439

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@highmobility/auto-api-javascript",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Auto API for JavaScript - the parsing library for the Auto API vehicle data model",
55
"main": "lib/index.js",
66
"module": "es/index.js",

src/core/Property.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ export class Property extends Serializable implements NamedEntity {
146146
public isInstanceOf(property: Property) {
147147
const { identityKey, multiple } = property;
148148
if (property instanceof Object.getPrototypeOf(this).constructor) {
149-
if (multiple && identityKey) {
150-
if ([this, property].every((p) => p.hasComponent('data'))) {
149+
if (multiple) {
150+
if (identityKey && [this, property].every((p) => p.hasComponent('data'))) {
151151
const [a, b] = [this, property].map((p) => p.valueOf() || {});
152152
return comparePropertyIdentity(a, b, identityKey);
153153
}

0 commit comments

Comments
 (0)