Explorar o código

project widget: Fix error when not using any filters (Fix #306)

George Cushen %!s(int64=7) %!d(string=hai) anos
pai
achega
488a1a7f1c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      layouts/partials/widgets/projects.html

+ 1 - 1
layouts/partials/widgets/projects.html

@@ -15,7 +15,7 @@
     <span class="hidden default-project-filter">{{ (index $page.Params.filter ($filter_default)).tag }}</span>
     {{ end }}
 
-    {{ if gt (len $page.Params.filter) 1 }}
+    {{ if and (($page.Params.filter) (gt (len $page.Params.filter) 1)) }}
     <div class="project-toolbar">
       <div class="project-filters">
         <div class="btn-toolbar">