mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added future cleanup note
no issue - This method was created as a shortcut and the real issue of 'undefined' values being present in CSV should be fiexed instead
This commit is contained in:
parent
d2aee78b01
commit
2c52282662
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@ const decorateWithSubscriptions = async function (member) {
|
|||
});
|
||||
};
|
||||
|
||||
// NOTE: this method should not exist at all and needs to be cleaned up
|
||||
// it was created due to a bug in how CSV is currently created for exports
|
||||
const cleanupUndefined = (obj) => {
|
||||
for (let key in obj) {
|
||||
if (obj[key] === 'undefined') {
|
||||
|
|
Loading…
Reference in a new issue