Skip to content

Commit

Permalink
Fix type guard TS 3.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort committed Nov 15, 2019
1 parent 759168b commit a5d0336
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const getChartColor = (section: InfraMetricLayoutSection, seriesId: strin
const isInfraMetricLayoutVisualizationType = (
subject: any
): subject is InfraMetricLayoutVisualizationType => {
return InfraMetricLayoutVisualizationType[subject] != null;
return subject in InfraMetricLayoutVisualizationType;
};

/**
Expand Down

0 comments on commit a5d0336

Please sign in to comment.