diff --git a/frontend/src/lib/lemon-ui/Sparkline.tsx b/frontend/src/lib/lemon-ui/Sparkline.tsx index 1682fae76b0b7..38bd6d4017962 100644 --- a/frontend/src/lib/lemon-ui/Sparkline.tsx +++ b/frontend/src/lib/lemon-ui/Sparkline.tsx @@ -43,7 +43,7 @@ export function Sparkline({ labels, data }: SparklineProps): JSX.Element { type: 'bar', data: { labels: labels || adjustedData[0].values.map((_, i) => `Entry ${i}`), - datasets: adjustedData.map((timeseries) => ({ + datasets: adjustedData.map((timeseries) => ({ data: timeseries.values, minBarLength: 0, backgroundColor: getColorVar(timeseries.color), diff --git a/package.json b/package.json index 7f1bdf639cac8..f860db3fd69e4 100644 --- a/package.json +++ b/package.json @@ -312,11 +312,11 @@ "stylelint --fix", "prettier --write" ], - "frontend/src/**.{js,jsx,mjs,ts,tsx}": [ + "frontend/src/**/*.{js,jsx,mjs,ts,tsx}": [ "eslint -c .eslintrc.js --fix", "prettier --write" ], - "plugin-server/**.{js,jsx,mjs,ts,tsx}": [ + "plugin-server/**/*.{js,jsx,mjs,ts,tsx}": [ "pnpm --dir plugin-server exec eslint --fix", "pnpm --dir plugin-server exec prettier --write" ],