From 71e491f31f1abe4d4256431b42f091407b0e8737 Mon Sep 17 00:00:00 2001 From: Gaurav Gupta Date: Thu, 11 Aug 2022 16:36:33 -0700 Subject: [PATCH] Lint fix Signed-off-by: Gaurav Gupta --- libs/core-ui/src/lib/util/JointDataset.ts | 3 ++- libs/counterfactuals/src/util/generatePlotlyProps.ts | 11 +++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/libs/core-ui/src/lib/util/JointDataset.ts b/libs/core-ui/src/lib/util/JointDataset.ts index 2cf03ed53f..92d6e90868 100644 --- a/libs/core-ui/src/lib/util/JointDataset.ts +++ b/libs/core-ui/src/lib/util/JointDataset.ts @@ -646,7 +646,8 @@ export class JointDataset { } public getJointDatasetFeatureName( - userFeatureName: string): string | undefined { + userFeatureName: string + ): string | undefined { // Return the joint dataset feature name for the given user feature name. let jointDatasetFeatureName = undefined; let isUserFeatureNameFound = false; diff --git a/libs/counterfactuals/src/util/generatePlotlyProps.ts b/libs/counterfactuals/src/util/generatePlotlyProps.ts index 8b072a8fb2..185bef8672 100644 --- a/libs/counterfactuals/src/util/generatePlotlyProps.ts +++ b/libs/counterfactuals/src/util/generatePlotlyProps.ts @@ -167,18 +167,13 @@ function generateDataTrace( trace.y = rawY; } } - if ( - jointDataset.datasetMetaData?.featureMetaData !== undefined - ) { + if (jointDataset.datasetMetaData?.featureMetaData !== undefined) { const identityFeatureName = - jointDataset.datasetMetaData.featureMetaData - ?.identity_feature_name; + jointDataset.datasetMetaData.featureMetaData?.identity_feature_name; if (identityFeatureName !== undefined) { const jointDatasetFeatureName = - jointDataset.getJointDatasetFeatureName( - identityFeatureName - ); + jointDataset.getJointDatasetFeatureName(identityFeatureName); if (jointDatasetFeatureName !== undefined) { const metaIdentityFeature =