@banch0u/core-project-test-repository 2.0.2 → 2.0.4

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.
@@ -271,7 +271,7 @@ var QuestionnairesSidebar = function QuestionnairesSidebar(_ref) {
271
271
  link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_OIL_FIELDS : QUESTIONNAIRES_OIL_FIELDS
272
272
  }, {
273
273
  key: "vehicle-groups",
274
- label: "Nəqliyyat qrupları",
274
+ label: "Dəstələr",
275
275
  link: mainPath === "/settings" ? SETTINGS_QUESTIONNAIRES_VEHICLE_GROUPS : QUESTIONNAIRES_VEHICLE_GROUPS
276
276
  }];
277
277
  var sortedItems = items.sort(function (a, b) {
@@ -56,10 +56,10 @@ var QuestionnairesVehicleGroupsContent = function QuestionnairesVehicleGroupsCon
56
56
  }),
57
57
  loading = _useSelector.loading,
58
58
  repairtypesRender = _useSelector.repairtypesRender;
59
- var repairtypes = useSelector(function (state) {
60
- return state.questionnaire.repairtypes;
59
+ var vehicleGroups = useSelector(function (state) {
60
+ return state.questionnaire.vehicleGroups;
61
61
  });
62
- var paginationLength = setPaginationLength(repairtypes === null || repairtypes === void 0 ? void 0 : repairtypes.count, repairtypes === null || repairtypes === void 0 ? void 0 : repairtypes.size);
62
+ var paginationLength = setPaginationLength(vehicleGroups === null || vehicleGroups === void 0 ? void 0 : vehicleGroups.count, vehicleGroups === null || vehicleGroups === void 0 ? void 0 : vehicleGroups.size);
63
63
  var onSubmit = useCallback(/*#__PURE__*/function () {
64
64
  var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data) {
65
65
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -116,11 +116,11 @@ var QuestionnairesVehicleGroupsContent = function QuestionnairesVehicleGroupsCon
116
116
  });
117
117
  };
118
118
  var data = [];
119
- if (repairtypes !== null && repairtypes !== void 0 && repairtypes.items) {
120
- var _repairtypes$items;
121
- data = repairtypes === null || repairtypes === void 0 || (_repairtypes$items = repairtypes.items) === null || _repairtypes$items === void 0 ? void 0 : _repairtypes$items.map(function (dataObj, i) {
119
+ if (vehicleGroups !== null && vehicleGroups !== void 0 && vehicleGroups.items) {
120
+ var _vehicleGroups$items;
121
+ data = vehicleGroups === null || vehicleGroups === void 0 || (_vehicleGroups$items = vehicleGroups.items) === null || _vehicleGroups$items === void 0 ? void 0 : _vehicleGroups$items.map(function (dataObj, i) {
122
122
  return {
123
- num: (repairtypes === null || repairtypes === void 0 ? void 0 : repairtypes.size) * (repairtypes === null || repairtypes === void 0 ? void 0 : repairtypes.page) + i + 1 - (repairtypes === null || repairtypes === void 0 ? void 0 : repairtypes.size),
123
+ num: (vehicleGroups === null || vehicleGroups === void 0 ? void 0 : vehicleGroups.size) * (vehicleGroups === null || vehicleGroups === void 0 ? void 0 : vehicleGroups.page) + i + 1 - (vehicleGroups === null || vehicleGroups === void 0 ? void 0 : vehicleGroups.size),
124
124
  id: dataObj === null || dataObj === void 0 ? void 0 : dataObj.id,
125
125
  name: dataObj === null || dataObj === void 0 ? void 0 : dataObj.name,
126
126
  isActive: dataObj === null || dataObj === void 0 ? void 0 : dataObj.isActive,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banch0u/core-project-test-repository",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "Shared core features for all projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [