fuse-importer 0.25.2 → 0.25.3
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.
|
@@ -122,7 +122,7 @@ export var ImporterContextProvider = function (_a) {
|
|
|
122
122
|
};
|
|
123
123
|
useEffect(function () {
|
|
124
124
|
(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
125
|
-
var _a, organization_1, columns, importer_style_preferences, integrations_1, preview_first_time, error_1, errorMsg;
|
|
125
|
+
var _a, organization_1, columns, importer_style_preferences, integrations_1, preview_first_time, columnsOrderedByPosition, error_1, errorMsg;
|
|
126
126
|
var _b, _c;
|
|
127
127
|
return __generator(this, function (_d) {
|
|
128
128
|
switch (_d.label) {
|
|
@@ -131,8 +131,9 @@ export var ImporterContextProvider = function (_a) {
|
|
|
131
131
|
return [4 /*yield*/, fuseApi.get("/api/v1/importer/templates/".concat(templateSlug))];
|
|
132
132
|
case 1:
|
|
133
133
|
_a = (_d.sent()).data, organization_1 = _a.organization, columns = _a.columns, importer_style_preferences = _a.importer_style_preferences, integrations_1 = _a.integrations, preview_first_time = _a.preview_first_time;
|
|
134
|
+
columnsOrderedByPosition = columns.sort(function (a, b) { return a.position - b.position; });
|
|
134
135
|
setOrganization(organization_1);
|
|
135
|
-
setTemplateHeaders(
|
|
136
|
+
setTemplateHeaders(columnsOrderedByPosition);
|
|
136
137
|
setIntegrations(integrations_1);
|
|
137
138
|
setPreviewFirstTime(preview_first_time);
|
|
138
139
|
if (organization_1.plan && organization_1.plan.allow_style_customization) {
|
|
@@ -63,7 +63,7 @@ export var TableDataProvider = function (_a) {
|
|
|
63
63
|
var _j = useState(null), totalPages = _j[0], setTotalPages = _j[1];
|
|
64
64
|
var _k = useState(defaultSortBy), sortBy = _k[0], setSortBy = _k[1];
|
|
65
65
|
var _l = useState(0), totalCount = _l[0], setTotalCount = _l[1];
|
|
66
|
-
var _m = useState(
|
|
66
|
+
var _m = useState(50), pageSize = _m[0], setPageSize = _m[1];
|
|
67
67
|
var getData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
68
68
|
var payload, e_1;
|
|
69
69
|
var _a, _b, _c;
|