mirror of
https://github.com/fergalmoran/100-tunes.git
synced 2026-01-06 16:54:09 +00:00
Fix json URL
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user