You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure the currency field type is handled in relation metadata.
Implement Sorting and Filtering Logic:
Identify where sorting and filtering logic is applied in the codebase (e.g., in hooks or components handling object metadata).
Add cases for the currency field type to enable sorting and filtering.
Example Code Snippet for Sorting:
// Add this in the relevant sorting utility functionif(field.type==='Currency'){// Sorting logic for currencyreturnrecords.sort((a,b)=>parseFloat(a[field.name])-parseFloat(b[field.name]));}
Example Code Snippet for Filtering:
// Add this in the relevant filtering utility functionif(field.type==='Currency'){// Filtering logic for currencyreturnrecords.filter(record=>record[field.name]===filterValue);}
We haven't implemented sorting on the currency field type. It would be very useful.
While we're at it we should also solve for filtering?.
It's a composite type so that's probably why, but I see we did it for name.
The text was updated successfully, but these errors were encountered: