Skip to content

Commit f72ac6c

Browse files
committed
handle no question scenario
1 parent 36fce76 commit f72ac6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/builder/src/utils/roundApplication.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export const parseRoundApplicationMetadata = (
7070
);
7171

7272
const maxId = Math.max(
73+
0,
7374
...metadata.applicationSchema.questions.map((q) => q.id)
7475
);
7576

0 commit comments

Comments
 (0)