mario-core 2.10.11-release → 2.10.12-release
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +12 -14
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -14
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -49744,7 +49744,7 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49744
49744
|
return row.trim();
|
|
49745
49745
|
});
|
|
49746
49746
|
var headerIndex = rows.findIndex(function (row) {
|
|
49747
|
-
return row.split(",").includes("
|
|
49747
|
+
return row.split(",").includes("First Name");
|
|
49748
49748
|
});
|
|
49749
49749
|
|
|
49750
49750
|
if (headerIndex === 0) {
|
|
@@ -49758,6 +49758,17 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49758
49758
|
});
|
|
49759
49759
|
var header = parsedData.meta.fields;
|
|
49760
49760
|
var dataRows = parsedData.data;
|
|
49761
|
+
|
|
49762
|
+
if (!!!dataRows.length) {
|
|
49763
|
+
dispatch(setLoading(false));
|
|
49764
|
+
dispatch(setAlert({
|
|
49765
|
+
type: "danger",
|
|
49766
|
+
message: 'The file has no data or some column names are misformed.'
|
|
49767
|
+
}));
|
|
49768
|
+
_exit2 = true;
|
|
49769
|
+
return;
|
|
49770
|
+
}
|
|
49771
|
+
|
|
49761
49772
|
var chunkSize = 10;
|
|
49762
49773
|
var chunks = [];
|
|
49763
49774
|
|
|
@@ -49768,12 +49779,6 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49768
49779
|
return (v != null ? v : "").toString().trim();
|
|
49769
49780
|
});
|
|
49770
49781
|
});
|
|
49771
|
-
console.log({
|
|
49772
|
-
valuesOnly: valuesOnly
|
|
49773
|
-
});
|
|
49774
|
-
console.log({
|
|
49775
|
-
chunkData: chunkData
|
|
49776
|
-
});
|
|
49777
49782
|
|
|
49778
49783
|
if (header) {
|
|
49779
49784
|
valuesOnly.unshift(header);
|
|
@@ -49785,13 +49790,6 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49785
49790
|
chunks.push(valuesOnly);
|
|
49786
49791
|
}
|
|
49787
49792
|
|
|
49788
|
-
console.log({
|
|
49789
|
-
chunks: chunks
|
|
49790
|
-
});
|
|
49791
|
-
console.log({
|
|
49792
|
-
header: header
|
|
49793
|
-
});
|
|
49794
|
-
|
|
49795
49793
|
var _temp5 = _forTo(chunks, function (i) {
|
|
49796
49794
|
return Promise.resolve(importChunkFileUsers({
|
|
49797
49795
|
chunks: chunks[i]
|