Skip to content

Commit 1f498b7

Browse files
committed
material-excel-export, materiallist is optional
1 parent ed640c8 commit 1f498b7

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)