Skip to content

Commit 65a2a68

Browse files
committed
fix: add check for metadata
1 parent fa84b6b commit 65a2a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backend/src/services/helpers/get-for-each-metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function getForEachMetadata({
4545

4646
// create object to track status of each iteration
4747
// set default status to null so that we have a 'waiting' status
48-
if (iterations && iterations > 0) {
48+
if (iterations && iterations > 0 && metadata) {
4949
metadata.iterations = iterations
5050
metadata.iterationStatus = {}
5151
for (let i = 0; i < iterations; i++) {

0 commit comments

Comments
 (0)