From f722ca7e58657e2b698d8ee236ceda9e0f42c9af Mon Sep 17 00:00:00 2001 From: vargburz Date: Tue, 31 May 2022 15:11:13 +0300 Subject: [PATCH] fix getters --- package.json | 2 +- src/models/series.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 644309f..ea04a2d 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@chartwerk/core", - "version": "0.6.7", + "version": "0.6.8", "description": "Chartwerk core", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/models/series.ts b/src/models/series.ts index eec8698..15a9f59 100644 --- a/src/models/series.ts +++ b/src/models/series.ts @@ -98,11 +98,11 @@ export class CoreSeries { } get leftYRelatedSeries(): Array { - return this.visibleSeries.filter(serie => serie.yOrientation = yAxisOrientation.LEFT); + return this.visibleSeries.filter(serie => serie.yOrientation === yAxisOrientation.LEFT); } get rightYRelatedSeries(): Array { - return this.visibleSeries.filter(serie => serie.yOrientation = yAxisOrientation.RIGHT); + return this.visibleSeries.filter(serie => serie.yOrientation === yAxisOrientation.RIGHT); } get areSeriesForY1Exist(): boolean {