Skip to content

Commit 2bb5fc8

Browse files
authored
Fix for null value (#3585)
1 parent 7f7099b commit 2bb5fc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/apps/human-app/server/src/modules/job-assignment/job-assignment.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class JobAssignmentController {
115115
headers: { Authorization: `Bearer ${process.env.THIRSTIFY_TOKEN}` },
116116
},
117117
);
118-
return Number(data.id) <= 0
118+
return Number(data?.id ?? 0) <= 0
119119
? {
120120
page: 0,
121121
page_size: 1,

0 commit comments

Comments
 (0)