Skip to content

Commit de06ae8

Browse files
SaolGhraAuroraLS3
andauthored
Fixed r.includes error on Litebans Kicks tab (#4170)
Affects issues: - Fixed #4169 Co-authored-by: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com>
1 parent 83ac9de commit de06ae8

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Plan/common/src/main/java/com/djrapitops/plan/delivery/rendering/html/Contributors.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ public class Contributors {
117117
new Contributor("ZhangYuheng", CODE),
118118
new Contributor("Zaemong", LANG),
119119
new Contributor("TWJohnJohn20116", LANG),
120-
new Contributor("YannicHock", CODE)
120+
new Contributor("YannicHock", CODE),
121+
new Contributor("SaolGhra", CODE)
121122
};
122123

123124
private Contributors() {

Plan/react/dashboard/src/components/extensions/ExtensionTable.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ const ExtensionDataTable = ({table}) => {
4444
order: [[1, "desc"]]
4545
}
4646
const rowKeyFunction = (row, column) => {
47-
return JSON.stringify(Object.entries(row).filter(e => e[0].includes('Value'))) + "-" + JSON.stringify(column?.data?._);
47+
const valueFields = Object.entries(row)
48+
.filter(e => typeof e[0] === 'string' && e[0].includes('Value'))
49+
.map(e => String(e[1]));
50+
return valueFields.join('-') + '-' + String(column?.data?._);
4851
}
4952

5053
return (

0 commit comments

Comments
 (0)