diff --git a/manuels/static/manuels/fetch-isbn.js b/manuels/static/manuels/fetch-isbn.js index 32ae1e8..f20ab21 100644 --- a/manuels/static/manuels/fetch-isbn.js +++ b/manuels/static/manuels/fetch-isbn.js @@ -39,6 +39,9 @@ document.addEventListener("DOMContentLoaded", function (event) { } isbnButton.addEventListener('click', function (event) { + if (!isbn.value) { + return; + } disableFields(); $.get("/isbn_api/" + isbn.value, {}, function (data, status, xhr) {