markdown.ex: do not fail if there is no children
This commit is contained in:
parent
e0d8c8897e
commit
106afaed58
@ -23,7 +23,7 @@ defmodule Pleroma.Docs.Markdown do
|
|||||||
|
|
||||||
IO.write(file, "#{group[:description]}\n")
|
IO.write(file, "#{group[:description]}\n")
|
||||||
|
|
||||||
for child <- group[:children] do
|
for child <- group[:children] || [] do
|
||||||
print_child_header(file, child)
|
print_child_header(file, child)
|
||||||
|
|
||||||
print_suggestions(file, child[:suggestions])
|
print_suggestions(file, child[:suggestions])
|
||||||
|
Loading…
Reference in New Issue
Block a user