fix error on no author

This commit is contained in:
2025-10-02 13:45:09 +02:00
parent cc079dd87d
commit afe325da0a
2 changed files with 4 additions and 6 deletions

View File

@@ -97,7 +97,9 @@
// [field_name, field_value, bold]
let info_fields = (
("study_programme", study_programme, false),
(if author.contains(", ") { "authors" } else { "author" }, author, true),
(
if not is_none(author) and author.contains(", ") {"authors" } else { "author" }, author, true
),
("supervisor", supervisor, false),
)
context {