Don't blow up if no recordings are there
This commit is contained in:
parent
e8b539da0d
commit
6562f9a56a
@ -126,6 +126,7 @@ function gardenShapes() {
|
|||||||
axios
|
axios
|
||||||
.get(archiveListingUrl)
|
.get(archiveListingUrl)
|
||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
|
if (!response.data.length) return;
|
||||||
let randomIndex = floor(random(0, response.data.length - 1));
|
let randomIndex = floor(random(0, response.data.length - 1));
|
||||||
let url = response.data[randomIndex];
|
let url = response.data[randomIndex];
|
||||||
axios
|
axios
|
||||||
|
Loading…
Reference in New Issue
Block a user