Skip to content

Conversation

@siderdk
Copy link
Collaborator

@siderdk siderdk commented Mar 20, 2025

Apologies for being late 3-b🙏

Copy link
Collaborator

@LucasIversen LucasIversen left a comment

Choose a reason for hiding this comment

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

All good

if (orderBy.length > 0) {
if (orderBy === "first_name ASC" || orderBy === "first_name DESC" ||
orderBy === "last_name ASC" || orderBy === "last_name DESC") {
const [column, direction] = orderBy.split(" ");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we could add the if statement after the split, so that it's (["first_name", "last_name"].contains(column) && ["ASC", "DESC"].contains(direction)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants