diff --git a/src/webui/service/templates/device/inventory.html b/src/webui/service/templates/device/inventory.html
index f740742f891f03f9eb67e69afe1ec36fba06dda8..17c14785a89658b59e07373bc7d939e234937631 100644
--- a/src/webui/service/templates/device/inventory.html
+++ b/src/webui/service/templates/device/inventory.html
@@ -123,7 +123,7 @@
                 </tr>
             </thead>
             <tbody>
-                {% for component in (device.components|sort(true, attribute='name'))%}
+                {% for component in (device.components|sort(true, attribute='name')) %}
                 <tr>
                     <td>
                         {{ component.component_uuid.uuid }}