mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
🐛 Fixed duplicate error columns in members import error CSV
fixes https://github.com/TryGhost/Team/issues/1911 Kept on creating a new error column when unparsing the error list. So for every error we would create a new column when it was already added.
This commit is contained in:
parent
2769578dbd
commit
7a565d4892
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ const unparse = (members, columns = DEFAULT_COLUMNS.slice()) => {
|
||||||
return column;
|
return column;
|
||||||
});
|
});
|
||||||
const mappedMembers = members.map((member) => {
|
const mappedMembers = members.map((member) => {
|
||||||
if (member.error) {
|
if (member.error && !columns.includes('error')) {
|
||||||
columns.push('error');
|
columns.push('error');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue