Skip to content

Commit

Permalink
Change useHtmlLabels to use general config's htmlLabels attribute not…
Browse files Browse the repository at this point in the history
… flowchart's
  • Loading branch information
yari-dewalt committed Oct 29, 2024
1 parent fe8932e commit 8f0e0b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const labelHelper = async <T extends SVGGraphicsElement>(
_classes?: string
) => {
let cssClasses;
const useHtmlLabels = node.useHtmlLabels || evaluate(getConfig()?.flowchart?.htmlLabels);
const useHtmlLabels = node.useHtmlLabels || evaluate(getConfig()?.htmlLabels);
if (!_classes) {
cssClasses = 'node default';
} else {
Expand Down Expand Up @@ -52,7 +52,7 @@ export const labelHelper = async <T extends SVGGraphicsElement>(
let bbox = text.getBBox();
const halfPadding = (node?.padding ?? 0) / 2;

if (evaluate(getConfig().flowchart?.htmlLabels)) {
if (useHtmlLabels) {
const div = text.children[0];
const dv = select(text);

Expand Down

0 comments on commit 8f0e0b9

Please sign in to comment.