Skip to content

Commit f8b4c2e

Browse files
committed
fix firstAuthor error
1 parent ada9bf4 commit f8b4c2e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/utils/table.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,14 @@ export const initColumns = (columns: Column[], disableRichColumnHeaders?: boolea
255255
case ColumnFormat.EMAIL:
256256
c.cell = (row: any) => {
257257
const rowValue = getRowValueFromSelectorString(c.selector, row);
258+
let firstAuthor: string;
258259
if (typeof rowValue === 'string') {
259-
const firstAuthor =
260+
firstAuthor =
260261
typeof rowValue === 'string' && rowValue.includes(',')
261262
? rowValue.split(',')[0]
262263
: rowValue;
263264
} else {
264-
const firstAuthor = '';
265+
firstAuthor = '';
265266
}
266267
let emailAddressPart = '';
267268
if (c && c.formatOptions && typeof row[c.formatOptions.emailAddressKey] === 'string') {

0 commit comments

Comments
 (0)