Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Add a check for blank search term before searching (#829)
Olga Bulatb0943cb3d454
diff --git a/src/pages/index.vue b/src/pages/index.vueindex cfe40345a..d038bcb38 100644--- a/src/pages/index.vue+++ b/src/pages/index.vue@@ -201,8 +201,9 @@ const HomePage = {const searchTerm = ref('')const handleSearch = async () => {+ if (!searchTerm.value) returnawait store.dispatch(`${SEARCH}/${UPDATE_QUERY}`, {- q: searchTerm.value || '',+ q: searchTerm.value,searchType: contentType.value,})const newPath = app.localePath({