@crowdin/app-project-module 0.93.0 → 0.94.0

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.
@@ -402,13 +402,11 @@ function getOAuthLoginFormId(clientId) {
402
402
  exports.getOAuthLoginFormId = getOAuthLoginFormId;
403
403
  function groupFieldsByCategory(fields) {
404
404
  const groupedFields = fields.reduce((acc, field) => {
405
- if ('key' in field) {
406
- const category = field.category || types_1.DefaultCategory.GENERAL;
407
- if (!acc[category]) {
408
- acc[category] = [];
409
- }
410
- acc[category].push(field);
405
+ const category = (field === null || field === void 0 ? void 0 : field.category) || types_1.DefaultCategory.GENERAL;
406
+ if (!acc[category]) {
407
+ acc[category] = [];
411
408
  }
409
+ acc[category].push(field);
412
410
  return acc;
413
411
  }, {});
414
412
  // Sort fields by position within each category