kui-crm_actions 0.0.154 → 0.0.156

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/index.js CHANGED
@@ -108,7 +108,7 @@ function __makeTemplateObject(cooked, raw) {
108
108
 
109
109
  var getPartialMeterInfoSchema = function (valuesFields) {
110
110
  var filteredFields = valuesFields
111
- .filter(function (field) { return field.type === "number"; })
111
+ .filter(function (field) { return field.maxIntegerPart; })
112
112
  .map(function (field) { return field.name; });
113
113
  var valuesSchema = filteredFields.map(function (field) {
114
114
  var _a;
@@ -515,7 +515,7 @@ var inspectionsRequests = {
515
515
  photos: inspectionsRequestBody.getFilesParams(room.files),
516
516
  room_order_number: withOrderNumber ? roomIndex : undefined,
517
517
  };
518
- })) || []);
518
+ }).filter(function (room) { return room.purpose; })) || []);
519
519
  },
520
520
  };
521
521