Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit cbd7d9d

Browse files
committed
fix(faq): fix check for empty faq list
FAQ index display empty page if API is not working. This is due to a wrong check in the template. Fix the check for the empty list by looking at the length of the list instead of checking if it is defined. --- src/views/faqs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
1 parent 2a8fb5f commit cbd7d9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/faqs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<section class="au-animate">
33
<div class="row">
44
<div class="col-lg-12">
5-
<div class="card card-default card-block" if.bind="!faqs">
5+
<div class="card card-default card-block" if.bind="faqs.length == 0">
66
<p class="card-text">
77
At the moment, no FAQs are available.
88
</p>

0 commit comments

Comments
 (0)