mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 01:55:41 -04:00
Remove unused variable
Presume this is from when we used to render the letter preview in a different way. Removing this saves us an API call every time we’re loading this page.
This commit is contained in:
@@ -57,13 +57,7 @@ def view_template(service_id, template_id):
|
|||||||
return redirect(url_for(
|
return redirect(url_for(
|
||||||
'.send_one_off', service_id=service_id, template_id=template_id
|
'.send_one_off', service_id=service_id, template_id=template_id
|
||||||
))
|
))
|
||||||
if template["template_type"] == "letter":
|
|
||||||
letter_contact_details = service_api_client.get_letter_contacts(service_id)
|
|
||||||
default_letter_contact_block_id = next(
|
|
||||||
(x['id'] for x in letter_contact_details if x['is_default']), None
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
default_letter_contact_block_id = None
|
|
||||||
return render_template(
|
return render_template(
|
||||||
'views/templates/template.html',
|
'views/templates/template.html',
|
||||||
template=get_template(
|
template=get_template(
|
||||||
@@ -81,7 +75,6 @@ def view_template(service_id, template_id):
|
|||||||
),
|
),
|
||||||
template_postage=template["postage"],
|
template_postage=template["postage"],
|
||||||
user_has_template_permission=user_has_template_permission,
|
user_has_template_permission=user_has_template_permission,
|
||||||
default_letter_contact_block_id=default_letter_contact_block_id,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user