Skip to content

Commit

Permalink
chart widget: fix conversions to numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
franzmueller committed Dec 12, 2024
1 parent b202ba1 commit 94b2409
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ export class ChartsExportService {
}
const matchingRule = resp.conversions.find((rule) => rule.from === value);
if (matchingRule !== undefined) {
value = matchingRule.to;
value = JSON.parse(matchingRule.to);
} else if (resp.type === 'string' || resp.type === 'boolean' && resp.conversionDefault !== undefined) {
value = resp.conversionDefault;
}
Expand Down

0 comments on commit 94b2409

Please sign in to comment.