@overmap-ai/core 1.0.71-fields.7 → 1.0.71-fields.8
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/dist/overmap-core.js
CHANGED
|
@@ -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
|
|
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
|
|
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) => {
|