Skip to content

Commit

Permalink
New callouts to be on top (#4781)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinyanakiev authored Dec 12, 2024
1 parent 9d07e87 commit b4dd825
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,10 @@ export class CollaborationService {
}
if (!calloutData.sortOrder) {
calloutData.sortOrder =
1 +
Math.max(
Math.min(
...collaboration.callouts.map(callout => callout.sortOrder),
0 // Needed in case there are no callouts. In that case the first callout will have sortOrder = 1
);
) - 1;
}

const reservedNameIDs =
Expand Down

0 comments on commit b4dd825

Please sign in to comment.