Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Gupta <gaugup@microsoft.com>
  • Loading branch information
gaugup committed Aug 11, 2022
1 parent 7140b89 commit 71e491f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
3 changes: 2 additions & 1 deletion libs/core-ui/src/lib/util/JointDataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
11 changes: 3 additions & 8 deletions libs/counterfactuals/src/util/generatePlotlyProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 71e491f

Please sign in to comment.