Don't blow up if no recordings are there

This commit is contained in:
Luke Murphy 2020-02-11 15:46:46 +01:00
parent e8b539da0d
commit 6562f9a56a
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -126,6 +126,7 @@ function gardenShapes() {
axios
.get(archiveListingUrl)
.then(function(response) {
if (!response.data.length) return;
let randomIndex = floor(random(0, response.data.length - 1));
let url = response.data[randomIndex];
axios