Skip to content

Commit 0552dce

Browse files
authored
Merge pull request #7564 from pmattmann/bugfix/material-excel-export
material-excel-export, materiallist is optional
2 parents ed640c8 + 1f498b7 commit 0552dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/material/useMaterialViewHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function getSheets(camp, collection, materialList) {
5555
materialItem.quantity,
5656
materialItem.unit,
5757
materialItem.article,
58-
...(!materialList ? [materialItem.materialList().name] : []),
58+
...(!materialList ? [materialItem.materialList?.().name] : []),
5959
activity?.title
6060
? `${activity.category().short} ${activity?.title}: ${scheduleEntries}`
6161
: period.description,

0 commit comments

Comments
 (0)