Unverified Commit 28b28f17 authored by Kartheek Palla's avatar Kartheek Palla Committed by GitHub
Browse files

Merge pull request #245 from vaibhavbhuva/release-4.5.0

Issue #SB-23374 fix : CSV helper util issue fixes
Showing with 5 additions and 5 deletions
+5 -5
......@@ -214,15 +214,15 @@ class CSVFileValidator {
}
});
if (hasError) {
return;
}
// Custom row validation
if (_.isFunction(this.config.validateRow)) {
this.config.validateRow(rowData, rowIndex + 1, this.flattenHierarchyObj);
}
if (hasError) {
return;
}
// Push the rowData
this.response.data.push(rowData);
});
......
......@@ -200,7 +200,7 @@ const validateFileType = (data, callback) => {
if(allowedMimeType.includes(data.mimeType)) {
callback(null, data);
} else {
callback(`Images mimetype should be one of: [${allowedMimeType}]'`);
callback('Invalid image format! Image format must be JPG or PNG');
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment