Skip to content

Commit

Permalink
Merge pull request #1407 from Shelf-nu/1385-feature-request-standard-…
Browse files Browse the repository at this point in the history
…sorting-for-custom-fields

improvement: order of custom fields
  • Loading branch information
DonKoko authored Nov 8, 2024
2 parents 904f8da + 0be8eea commit f3b993e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/routes/_layout+/assets.$assetId.overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ export default function AssetOverview() {

const customFieldsValues =
asset && asset.customFields?.length > 0
? asset.customFields.filter((f) => f.value)
? asset.customFields
.filter((f) => f.value)
.sort((a, b) => a.customField.name.localeCompare(b.customField.name))
: [];

const location = asset && asset.location;
Expand Down

0 comments on commit f3b993e

Please sign in to comment.