Skip to content

Commit

Permalink
- remove trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
elipe17 committed Aug 21, 2024
1 parent fdf41c7 commit 79a6d9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if (typeof (django) !== 'undefined' && typeof (django.jQuery) !== 'undefined') {
selected = selected.concat(option.value, '%2C')
}
}
selected = selected.replace(/,+$/, "")
selected = selected.substring(0, selected.lastIndexOf('%2C'))
if (selected !== '') {
query = query.concat(conjunction, filter.options[0].getAttribute('key'), '=', selected)
}
Expand Down

0 comments on commit 79a6d9e

Please sign in to comment.