Fix error thrown when accessing person list page with tags
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
confirmButtonText: 'Add',
|
confirmButtonText: 'Add',
|
||||||
showLoaderOnConfirm: true,
|
showLoaderOnConfirm: true,
|
||||||
preConfirm: (tag) => {
|
preConfirm: (tag) => {
|
||||||
return fetch(`{{ url_for('add_tag') }}?tag=${encodeURIComponent(tag)}&filter=${encodeURIComponent(window.location.search)}{{ '&person_id='+person_id if person_id else '' }}`)
|
return fetch(`{{ url_for('add_tag') }}?tag=${encodeURIComponent(tag)}&filter=${encodeURIComponent(window.location.search)}{% if person_id %} f'&person_id={person_id}' {% endif%}`)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(response.statusText)
|
throw new Error(response.statusText)
|
||||||
|
|||||||
Reference in New Issue
Block a user