markdown.ex: do not fail if there is no children
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 17 Sep 2019 20:04:21 +0000 (22:04 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Tue, 17 Sep 2019 21:05:26 +0000 (23:05 +0200)
lib/pleroma/docs/markdown.ex

index d7ca979572e0c57fee85f8a2feafd01815336d80..20bd1c89647172864dfc0a101e631d0afbe9c699 100644 (file)
@@ -23,7 +23,7 @@ defmodule Pleroma.Docs.Markdown do
 
       IO.write(file, "#{group[:description]}\n")
 
-      for child <- group[:children] do
+      for child <- group[:children] || [] do
         print_child_header(file, child)
 
         print_suggestions(file, child[:suggestions])