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.
2 parents dafcdc0 + feb4fad commit b731241Copy full SHA for b731241
index.js
@@ -1,7 +1,7 @@
1
'use strict';
2
3
function csvToArray(value) {
4
- return value.split(',').map(function(item) { return item.trim(); });
+ return value !== null ? value.split(',').map(function(item) { return item.trim(); }) : [];
5
}
6
7
function applyCsvToArrayTransform(data, model) {
@@ -30,4 +30,4 @@ module.exports = function (options = {}) { // eslint-disable-line no-unused-vars
30
31
return Promise.resolve(hook);
32
};
33
-};
+};
0 commit comments