Skip to content

Commit

Permalink
show emptystring instead of "null" for undefined xid
Browse files Browse the repository at this point in the history
  • Loading branch information
ballPointPenguin committed Feb 21, 2025
1 parent 9b0445f commit b01ad35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/routes/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export async function sendParticipantVotesSummary(zid: number, res: Response) {
const xids = await getXids(zid);
function getXid(pid: number): string | undefined {
const xid = xids.find((row) => row.pid === pid);
return xid?.xid;
return xid?.xid || "";
}

res.setHeader("content-type", "text/csv");
Expand Down

0 comments on commit b01ad35

Please sign in to comment.