bugfix: GUI failed when delivery was null

This commit is contained in:
2025-07-13 00:03:57 +02:00
parent 26fa72ef84
commit d223ab557b

View File

@@ -217,7 +217,7 @@ public final class Document implements Mappable {
map.put(FIELD_TYPE, type.name());
map.put(DATE, date);
map.put(STATE, state.code);
map.put(FIELD_DELIVERY, delivery);
map.put(FIELD_DELIVERY, delivery == null ? "" : delivery);
map.put(FIELD_HEAD, Map.of(SOURCE,head,RENDERED,markdown(head)));
map.put(FIELD_FOOTER, Map.of(SOURCE,footer,RENDERED,markdown(footer)));
map.put(FIELD_CURRENCY, currency);