@overmap-ai/core 1.0.71-fields.7 → 1.0.71-fields.9

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.
@@ -3068,7 +3068,7 @@ const selectIssueTypeFieldsOfIssueType = restructureCreateSelectorWithArgs(
3068
3068
  );
3069
3069
  const selectLatestIssueTypeFieldsOfIssueType = restructureCreateSelectorWithArgs(
3070
3070
  createSelector([selectIssueTypeFields, (_state, id) => id], (fields, id) => {
3071
- return fields.filter((field) => field.issue_type === id).sort((a, b) => a.submitted_at < b.submitted_at ? -1 : 1)[0];
3071
+ return fields.filter((field) => field.issue_type === id).sort((a, b) => a.submitted_at > b.submitted_at ? -1 : 1)[0];
3072
3072
  })
3073
3073
  );
3074
3074
  const selectIssueTypeValuesOfIssueType = restructureCreateSelectorWithArgs(
@@ -3228,7 +3228,7 @@ const selectAssetTypeFieldsOfAssetType = restructureCreateSelectorWithArgs(
3228
3228
  );
3229
3229
  const selectLatestAssetTypeFieldsOfAssetType = restructureCreateSelectorWithArgs(
3230
3230
  createSelector([selectAssetTypeFields, (_state, id) => id], (fields, id) => {
3231
- return fields.filter((field) => field.asset_type === id).sort((a, b) => a.submitted_at < b.submitted_at ? -1 : 1)[0];
3231
+ return fields.filter((field) => field.asset_type === id).sort((a, b) => a.submitted_at > b.submitted_at ? -1 : 1)[0];
3232
3232
  })
3233
3233
  );
3234
3234
  const selectAssetTypeFieldsById = (fieldsId) => (state) => {
@@ -5277,15 +5277,7 @@ class IssueTypeService extends BaseApiService {
5277
5277
  const promise = this.enqueueRequest({
5278
5278
  method: HttpMethod.POST,
5279
5279
  url: "/issue-types/",
5280
- // Sending only whats needed here
5281
- payload: {
5282
- offline_id: offlineIssueType.offline_id,
5283
- submitted_at: offlineIssueType.submitted_at,
5284
- icon: offlineIssueType.icon,
5285
- color: offlineIssueType.color,
5286
- name: offlineIssueType.name,
5287
- description: offlineIssueType.description
5288
- },
5280
+ payload: offlineIssueType,
5289
5281
  blockers: [],
5290
5282
  blocks: [offlineIssueType.offline_id]
5291
5283
  });