0
Fork 0
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:
Nazar Gargol 2020-02-11 18:17:46 +08:00
parent d2aee78b01
commit 2c52282662

View file

@ -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') {