Skip to content

Commit

Permalink
set unsafe only with escaping enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmadom committed Dec 27, 2024
1 parent 8c47626 commit 8486039
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -51,7 +52,7 @@ function wizardManageTooltipConfig(config: {lines: GraphTooltipLine[]}) {
return {
...config,
lines: mappedLines,
unsafe: true,
unsafe: Utils.isEnabledFeature(Feature.EscapingStringInWizard),
};
}

Expand Down

0 comments on commit 8486039

Please sign in to comment.