@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.
|
@@ -3057,7 +3057,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3057
3057
|
);
|
|
3058
3058
|
const selectLatestIssueTypeFieldsOfIssueType = restructureCreateSelectorWithArgs(
|
|
3059
3059
|
toolkit.createSelector([selectIssueTypeFields, (_state, id) => id], (fields, id) => {
|
|
3060
|
-
return fields.filter((field) => field.issue_type === id).sort((a, b) => a.submitted_at
|
|
3060
|
+
return fields.filter((field) => field.issue_type === id).sort((a, b) => a.submitted_at > b.submitted_at ? -1 : 1)[0];
|
|
3061
3061
|
})
|
|
3062
3062
|
);
|
|
3063
3063
|
const selectIssueTypeValuesOfIssueType = restructureCreateSelectorWithArgs(
|
|
@@ -3217,7 +3217,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3217
3217
|
);
|
|
3218
3218
|
const selectLatestAssetTypeFieldsOfAssetType = restructureCreateSelectorWithArgs(
|
|
3219
3219
|
toolkit.createSelector([selectAssetTypeFields, (_state, id) => id], (fields, id) => {
|
|
3220
|
-
return fields.filter((field) => field.asset_type === id).sort((a, b) => a.submitted_at
|
|
3220
|
+
return fields.filter((field) => field.asset_type === id).sort((a, b) => a.submitted_at > b.submitted_at ? -1 : 1)[0];
|
|
3221
3221
|
})
|
|
3222
3222
|
);
|
|
3223
3223
|
const selectAssetTypeFieldsById = (fieldsId) => (state) => {
|
|
@@ -5266,15 +5266,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5266
5266
|
const promise = this.enqueueRequest({
|
|
5267
5267
|
method: HttpMethod.POST,
|
|
5268
5268
|
url: "/issue-types/",
|
|
5269
|
-
|
|
5270
|
-
payload: {
|
|
5271
|
-
offline_id: offlineIssueType.offline_id,
|
|
5272
|
-
submitted_at: offlineIssueType.submitted_at,
|
|
5273
|
-
icon: offlineIssueType.icon,
|
|
5274
|
-
color: offlineIssueType.color,
|
|
5275
|
-
name: offlineIssueType.name,
|
|
5276
|
-
description: offlineIssueType.description
|
|
5277
|
-
},
|
|
5269
|
+
payload: offlineIssueType,
|
|
5278
5270
|
blockers: [],
|
|
5279
5271
|
blocks: [offlineIssueType.offline_id]
|
|
5280
5272
|
});
|