We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7356ee1 commit 585db25Copy full SHA for 585db25
1 file changed
vis/js/templates/listentry/Details.jsx
@@ -53,10 +53,10 @@ const getAuthorsString = (authorsList, maxLength) => {
53
54
const ellipsis = "...";
55
const join = ", ";
56
- const maxLengthAthors = 15;
+ const maxLengthAuthors = 15;
57
let finalString = authorsListCopy.shift();
58
- if (authorsList.length > maxLengthAthors) {
59
- const firstAuthors = authorsList.slice(0, maxLengthAthors - 1).join(join);
+ if (authorsList.length > maxLengthAuthors) {
+ const firstAuthors = authorsList.slice(0, maxLengthAuthors - 1).join(join);
60
const lastAuthor = authorsList[authorsList.length - 1];
61
finalString = `${firstAuthors}, ... ${lastAuthor}`;
62
return finalString;
0 commit comments