Skip to content

Commit

Permalink
Fixed search problem, but coverage has dropped elsewhere. #2314
Browse files Browse the repository at this point in the history
  • Loading branch information
knirirr committed Oct 8, 2024
1 parent 9b01a5c commit 54fda7a
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/components/Records/Search/Input/StringSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ export default {
path: _module.searchPath,
query: query,
});
_module.searchTerm = null;
_module.$refs.form.resetValidation();
},
searchStringHomePage() {
Expand All @@ -180,19 +179,18 @@ export default {
_module.selectedRegistries.forEach((registryItem) => {
selectedRegistriesValues.push(registryItem.value);
});
query = {
q: _module.searchTerm ? _module.searchTerm : undefined,
fairsharingRegistry: selectedRegistriesValues.toString(),
searchAnd: false,
query = {
q: _module.searchTerm ? _module.searchTerm : undefined,
fairsharingRegistry: selectedRegistriesValues.toString(),
searchAnd: false,
}
}
_module.$router.push({
path: "/search",
query: query,
});
}
_module.$router.push({
path: "/search",
query: query,
});
_module.searchTerm = null;
_module.$refs.form.resetValidation();
}
},
clearSearchField(item) {
if (item) this.searchTerm = null;
Expand Down

0 comments on commit 54fda7a

Please sign in to comment.