Upgrade to the latest Cataas API
They made a backwards-incompatible change when I wasn't looking :(
This commit is contained in:
parent
bc5a5fdf65
commit
48d07472c9
|
@ -80,7 +80,7 @@ const Bookmarks = (props) => {
|
||||||
headers: {...headers,
|
headers: {...headers,
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
},
|
},
|
||||||
body: JSON.stringify({ ...formState, remote_id: randomCat.id })
|
body: JSON.stringify({ ...formState, remote_id: randomCat._id })
|
||||||
});
|
});
|
||||||
|
|
||||||
// Update the category list in case a new one was added
|
// Update the category list in case a new one was added
|
||||||
|
@ -112,7 +112,7 @@ const Bookmarks = (props) => {
|
||||||
<div>
|
<div>
|
||||||
<img className = "random-image center-box-inner"
|
<img className = "random-image center-box-inner"
|
||||||
src = { randomCat != null
|
src = { randomCat != null
|
||||||
? cataas(randomCat.url)
|
? cataas("/cat/" + randomCat._id)
|
||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
alt = { randomCat != null
|
alt = { randomCat != null
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue