chore: Prettified Code
[ci skip]
This commit is contained in:
parent
2c33ddc060
commit
6180e8e8c1
1 changed files with 3 additions and 3 deletions
|
@ -1945,9 +1945,9 @@ const app = new Vue({
|
||||||
})
|
})
|
||||||
).data.results;
|
).data.results;
|
||||||
let shints = hints ? hints.suggestions : [];
|
let shints = hints ? hints.suggestions : [];
|
||||||
for (item in shints){
|
for (item in shints) {
|
||||||
if ((shints[item]?.displayTerm ?? "").includes("?fields[")){
|
if ((shints[item]?.displayTerm ?? "").includes("?fields[")) {
|
||||||
shints[item].displayTerm = shints[item].searchTerm = shints[item].displayTerm.split('?fields[')[0]
|
shints[item].displayTerm = shints[item].searchTerm = shints[item].displayTerm.split("?fields[")[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.search.hints = shints;
|
this.search.hints = shints;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue