Skip to content

Commit

Permalink
Merge pull request #706 from KwonIan/show_all_emails
Browse files Browse the repository at this point in the history
fixed invisible emails in contribs explorer
  • Loading branch information
yang-ruoxi authored Sep 19, 2024
2 parents a8b6317 + 8aba54d commit 0851e70
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/utils/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,14 @@ export const initColumns = (columns: Column[], disableRichColumnHeaders?: boolea
case ColumnFormat.EMAIL:
c.cell = (row: any) => {
const rowValue = getRowValueFromSelectorString(c.selector, row);
const firstAuthor =
typeof rowValue === 'string' && rowValue.includes(',') ? rowValue.split(',')[0] : '';
if (typeof rowValue === 'string') {
const firstAuthor =
typeof rowValue === 'string' && rowValue.includes(',')
? rowValue.split(',')[0]
: rowValue;
} else {
const firstAuthor = '';
}
let emailAddressPart = '';
if (c && c.formatOptions && typeof row[c.formatOptions.emailAddressKey] === 'string') {
const parts = row[c.formatOptions.emailAddressKey].split(':');
Expand Down

0 comments on commit 0851e70

Please sign in to comment.