fix: linter

This commit is contained in:
Simon Lecoq
2023-03-15 19:42:53 -04:00
parent 479e6e9a87
commit 566ee2075b
4 changed files with 18 additions and 12 deletions

View File

@@ -126,7 +126,7 @@ export default async function({login, data, rest, imports, q, account}, {enabled
].map(({type, data, high, low, ticks, colors = null, labels = null, half = false}) => {
const width = 480 * (half ? 0.45 : 1)
const height = 160
if (type === "line")
if (type === "line")
return imports.Graph.line(Object.entries(data).map(([x, y]) => ({x:+x, y})), {low, high, ticks, labels, width, height})
console.log(data)
if (type === "pie")