Skip to content

Commit

Permalink
features list: sort by name as well when tag sorting is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez committed Nov 3, 2023
1 parent 014d3ef commit e12d945
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ const InventoryPanelFeatures = ({ noData: noDataMessage }: { noData: string }):
const allFeaturesQuery = useAllFeatures(
pid,
{
...filters,
...{
...filters,
// ? if tag sorting is chosen, sort by tag and then by name
...(['tag', '-tag'].includes(filters.sort) && {
sort: `${filters.sort},featureClassName`,
}),
},
search,
},
{
Expand Down

1 comment on commit e12d945

@vercel
Copy link

@vercel vercel bot commented on e12d945 Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

marxan – ./

marxan23.vercel.app
marxan-vizzuality1.vercel.app
marxan-git-develop-vizzuality1.vercel.app

Please sign in to comment.