Skip to content

Commit

Permalink
make pre-commit hook happy
Browse files Browse the repository at this point in the history
  • Loading branch information
nzinfo committed Jan 8, 2025
1 parent 5532a51 commit 51bf4a0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/collaboration/src/collaboratorspanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ export class CollaboratorsPanel extends Panel {
value.user &&
value.user.username !== this._currentUser.identity!.username

Check warning on line 106 in packages/collaboration/src/collaboratorspanel.tsx

View workflow job for this annotation

GitHub Actions / Run pre-commit hook

Forbidden non-null assertion
) {
const uniqueKey = `${value.user.username}-${value.current || 'no-current'}`;
const uniqueKey = `${value.user.username}-${
value.current || 'no-current'
}`;
if (!collaboratorsMap.has(uniqueKey)) {
collaboratorsMap.set(uniqueKey, value as ICollaboratorAwareness);
}
Expand Down Expand Up @@ -136,8 +138,10 @@ export function CollaboratorsBody(props: {

return (
<div className={COLLABORATORS_LIST_CLASS}>
{collaborators.map((collaborator) => {
const uniqueKey = `${collaborator.user.username}-${collaborator.current || 'no-current'}`;
{collaborators.map(collaborator => {
const uniqueKey = `${collaborator.user.username}-${
collaborator.current || 'no-current'
}`;
return (
<Collaborator
key={uniqueKey}
Expand Down

0 comments on commit 51bf4a0

Please sign in to comment.