From 3af18f59530598d6abba2871b306a4423b704fdd Mon Sep 17 00:00:00 2001 From: Yaroslav Kuznietsov Date: Wed, 18 May 2022 13:57:10 +0300 Subject: [PATCH] Types fixed. --- .../expression_xy/common/expression_functions/validate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/validate.ts b/src/plugins/chart_expressions/expression_xy/common/expression_functions/validate.ts index 093a212222dc5..60e590b0f8cca 100644 --- a/src/plugins/chart_expressions/expression_xy/common/expression_functions/validate.ts +++ b/src/plugins/chart_expressions/expression_xy/common/expression_functions/validate.ts @@ -144,8 +144,8 @@ export const validateMarkSizeForChartType = ( } }; -export const validateMarkSizeRatioLimits = (markSizeRatio: number) => { - if (markSizeRatio < 1 || markSizeRatio > 100) { +export const validateMarkSizeRatioLimits = (markSizeRatio?: number) => { + if (markSizeRatio !== undefined && (markSizeRatio < 1 || markSizeRatio > 100)) { throw new Error(errors.markSizeRatioLimitsError()); } };