From 8486039cfbd5fd7291dde69831933e63ad42842d Mon Sep 17 00:00:00 2001 From: Irina Kuzmina Date: Fri, 27 Dec 2024 14:05:56 +0300 Subject: [PATCH] set unsafe only with escaping enabled --- .../modules/data-provider/charts/chartkit-handlers.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/libs/DatalensChartkit/modules/data-provider/charts/chartkit-handlers.ts b/src/ui/libs/DatalensChartkit/modules/data-provider/charts/chartkit-handlers.ts index 56bb03fee3..119ac4739f 100644 --- a/src/ui/libs/DatalensChartkit/modules/data-provider/charts/chartkit-handlers.ts +++ b/src/ui/libs/DatalensChartkit/modules/data-provider/charts/chartkit-handlers.ts @@ -4,7 +4,8 @@ import type { GraphTooltipLine, HighchartsSeriesCustomObject, } from 'shared'; -import {ChartkitHandlers} from 'shared'; +import {ChartkitHandlers, Feature} from 'shared'; +import Utils from 'ui/utils'; export const baseRenderFn = (value: unknown) => value; @@ -51,7 +52,7 @@ function wizardManageTooltipConfig(config: {lines: GraphTooltipLine[]}) { return { ...config, lines: mappedLines, - unsafe: true, + unsafe: Utils.isEnabledFeature(Feature.EscapingStringInWizard), }; }