Fix json URL

This commit is contained in:
Fergal Moran
2021-01-18 12:37:00 +00:00
parent 876640b839
commit 5c1a1d72a6
2 changed files with 3 additions and 5 deletions

View File

@@ -15,10 +15,8 @@ const MixList = () => {
useEffect(() => {
const getData = async () => {
try {
const mixes: Tune[] = await (
await fetch(
process.env.REACT_APP_DATA_URL || "data/tunes.json"
)
const mixes: Tune[] = await(
await fetch(`${process.env.PUBLIC_URL}/data/tunes.json`)
).json();
setTunes(mixes);
} catch (err) {