Skip to content

Commit

Permalink
Merge branch 'release-2.12.x' into TASK-5931
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjuanes authored May 14, 2024
2 parents f9407f1 + 023f596 commit d63eee3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/sites/iva/iva-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,11 +886,9 @@ class IvaApp extends LitElement {
let query = {};
// Check if key=value list exist
if (hashQuery.includes("=")) {
const filters = hashQuery.split("&");
for (const filter of filters) {
const [key, value] = filter.split("=");
query[key] = value;
}
Array.from(new URLSearchParams(hashQuery).entries()).forEach(entry => {
query[entry[0]] = entry[1];
});
} else {
// Default query filter is 'id'
query = {id: hashQuery};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export default class CatalogSearchAutocomplete extends LitElement {
fields: this.RESOURCES[this.resource].fields,
source: (params, success, failure) => {
const page = params?.data?.page || 1;
const attr = params?.data?.term ? {[this.searchField || this.RESOURCES[this.resource].searchField]: "~/" + params?.data?.term + "/i"} : null;
const attr = params?.data?.term ? {[this.searchField || this.RESOURCES[this.resource].searchField]: "~/" + params?.data?.term.trim() + "/i"} : null;
const filters = {
study: this.opencgaSession.study.fqn,
limit: this._config.limit,
Expand Down

0 comments on commit d63eee3

Please sign in to comment.