Skip to content

Commit

Permalink
Update queryUrl used to detect duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan authored and hackartisan committed Jul 12, 2022
1 parent 844dd19 commit d528194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/figgy/form/detect_duplicates.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class DuplicateResourceDetector {

setQueryUrl() {
this.value = this.$element.val()
this.queryUrl = `/catalog?f[${this.field}][]=${this.value}`
this.queryUrl = `/catalog?q=${this.field}:${this.value}`
if(this.existing)
this.queryUrl += `&q=NOT+id:${this.existing}`
}
Expand Down

0 comments on commit d528194

Please sign in to comment.