Remove space in person id query param for tags

This commit is contained in:
Peter Stockings
2025-01-27 13:14:55 +11:00
parent d2c03cb81b
commit a7592a29f6

View File

@@ -53,7 +53,7 @@
confirmButtonText: 'Add',
showLoaderOnConfirm: true,
preConfirm: (tag) => {
return fetch(`{{ url_for('add_tag') }}?tag=${encodeURIComponent(tag)}&filter=${encodeURIComponent(window.location.search)}{% if person_id %} {{ "&person_id={person_id}".format(person_id=person_id) | safe }} {% endif%}`)
return fetch(`{{ url_for('add_tag') }}?tag=${encodeURIComponent(tag)}&filter=${encodeURIComponent(window.location.search)}{% if person_id %}{{ "&person_id={person_id}".format(person_id=person_id) | safe }} {% endif%}`)
.then(response => {
if (!response.ok) {
throw new Error(response.statusText)