Updates to query files
queryLevelTransformerFunction -adding eslint-disable-next-line queryLevelTransformerFunctionWithData -adding eslint-disable-next-line -Removing const stateCode - not required
This commit is contained in:
parent
a49c2d2200
commit
220ee31b02
|
@ -1,3 +1,4 @@
|
||||||
|
// eslint-disable-next-line
|
||||||
const breweries = data
|
const breweries = data
|
||||||
const totals = {}
|
const totals = {}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// eslint-disable-next-line
|
||||||
const breweries = data
|
const breweries = data
|
||||||
const totals = {}
|
const totals = {}
|
||||||
for (let brewery of breweries)
|
for (let brewery of breweries)
|
||||||
|
@ -25,6 +26,6 @@ const stateCodes =
|
||||||
}
|
}
|
||||||
const entries = Object.entries(totals)
|
const entries = Object.entries(totals)
|
||||||
return entries.map(([state, count]) =>
|
return entries.map(([state, count]) =>
|
||||||
{const stateCode = stateCodes[state.toLowerCase()]
|
{stateCodes[state.toLowerCase()]
|
||||||
return { state, count, flag: "http://flags.ox3.in/svg/us/${stateCode}.svg" }
|
return { state, count, flag: "http://flags.ox3.in/svg/us/${stateCode}.svg" }
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue