Skip to content

Commit

Permalink
fix: convert backgroundcolor from string to string array
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickskowronekdkfz committed Oct 15, 2024
1 parent dbad8c1 commit ac0afa9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/lib/src/components/results/ChartComponent.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@
): ChartDataSets => {
let dataSet: number[];
// This is bad. For some reason the passed value is a string not a array of strings. With this conversion it does work!
if (typeof backgroundColor == "string") {
backgroundColor = backgroundColor.split(",");
}
if (perSite) {
dataSet = chartLabels.map((label: string) => {
const site: Site | undefined = responseStore.get(label);
Expand Down

0 comments on commit ac0afa9

Please sign in to comment.