diff --git a/bookwyrm/static/js/status_cache.js b/bookwyrm/static/js/status_cache.js index db60341e..b3e345b1 100644 --- a/bookwyrm/static/js/status_cache.js +++ b/bookwyrm/static/js/status_cache.js @@ -71,7 +71,9 @@ let StatusCache = new class { if (!trigger) { trigger = event.currentTarget.querySelector("button[type=submit]"); } - // this allows the form to submit in the old fashioned way if there's a problem + + // This allows the form to submit in the old fashioned way if there's a problem + if (!trigger || !form) { return; }