Skip to content

Commit

Permalink
Change null to mdash on empty student ids in the All results table
Browse files Browse the repository at this point in the history
Fixes #1272
  • Loading branch information
ashi006 committed Oct 13, 2023
1 parent 46dba40 commit 46a5007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercise/static/exercise/results_staff.js
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@
function renderParticipantLink(data, type, row) {
// TODO: Get the link to students in a proper way
const link = $('li.menu-participants').find('a').attr('href');
return (row['UserID'] > 0 ? '<a href="' + link + row['UserID'] + '">' + data + '</a>' : '');
return (row['UserID'] > 0 ? '<a href="' + link + row['UserID'] + '">' + (!data ? '—' : data) + '</a>' : '');
}

let columns = [
Expand Down

0 comments on commit 46a5007

Please sign in to comment.