From bdf1680b19d745581f66aea822322616fc24061a Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Thu, 20 Apr 2023 22:48:04 +1000 Subject: [PATCH] Fix error thrown when attempting to add tag from person list --- templates/partials/tags.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/partials/tags.html b/templates/partials/tags.html index 92f6cf8..6c548d6 100644 --- a/templates/partials/tags.html +++ b/templates/partials/tags.html @@ -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 %} f'&person_id={person_id}' {% 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)