Skip to content

Commit

Permalink
fix type error in jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme committed Oct 29, 2020
1 parent 96cd1c7 commit 04764b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/vis_type_vislib/public/to_ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const toExpressionAst: VisToExpressionAst<BasicVislibParams> = async (vis
yDimension.format = { id: 'percent' };
}
}
if (visConfig?.gauge.percentageMode === true) {
if (visConfig?.gauge?.percentageMode === true) {
yDimension.format = { id: 'percent' };
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/vis_type_vislib/public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export interface BasicVislibParams extends CommonVislibParams {
labels: Labels;
thresholdLine: ThresholdLine;
valueAxes: ValueAxis[];
gauge: {
gauge?: {
percentageMode: boolean;
};
grid: {
Expand Down

0 comments on commit 04764b1

Please sign in to comment.