Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Nov 13, 2024
1 parent 72f05a1 commit 71c60c5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions web/src/lib/assistants/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ export function orderAssistantsForUser(
);

remainingAssistants.sort((a, b) => {
// First, prioritize default personas
if (a.is_default_persona !== b.is_default_persona) {
return a.is_default_persona ? -1 : 1;
}
// If both are default or both are not default, then sort by display priority
const priorityA = a.display_priority ?? Number.MAX_SAFE_INTEGER;
const priorityB = b.display_priority ?? Number.MAX_SAFE_INTEGER;
return priorityA - priorityB;
Expand Down

0 comments on commit 71c60c5

Please sign in to comment.