diff --git a/templates/job-order/list.assigning.html.twig b/templates/job-order/list.assigning.html.twig
index d1c32275..c9b930a3 100644
--- a/templates/job-order/list.assigning.html.twig
+++ b/templates/job-order/list.assigning.html.twig
@@ -111,7 +111,9 @@
var actions = '';
{% if is_granted('jo_assign.unlock') %}
- actions += '';
+ if (row.meta.unlock_url != '') {
+ actions += '';
+ }
{% endif %}
return actions;
diff --git a/templates/job-order/list.html.twig b/templates/job-order/list.html.twig
index 114d45f0..c7a6110e 100644
--- a/templates/job-order/list.html.twig
+++ b/templates/job-order/list.html.twig
@@ -106,8 +106,10 @@
template: function (row, index, datatable) {
var actions = '';
- {% if row.meta.unlock_url != "" && is_granted('jo_proc.unlock') %}
- actions += '';
+ {% if is_granted('jo_proc.unlock') %}
+ if (row.meta.unlock_url != '') {
+ actions += '';
+ }
{% endif %}
return actions;