Skip to content

Commit

Permalink
fix build error (keys in search toolbar)
Browse files Browse the repository at this point in the history
  • Loading branch information
Diivvuu committed Oct 17, 2024
1 parent 5e85ea3 commit 8ad6465
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/app/workspace/[workspaceId]/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ const Toolbar = () => {
<CommandList>
<CommandGroup heading="Channels">
{channels?.map((channel) => (
<CommandItem onSelect={() => onChannelClick(channel._id)}>
<CommandItem
key={channel._id}
onSelect={() => onChannelClick(channel._id)}
>
{channel.name}
</CommandItem>
))}
Expand All @@ -60,7 +63,10 @@ const Toolbar = () => {
<CommandSeparator />
<CommandGroup heading="Members">
{members?.map((member) => (
<CommandItem onSelect={() => onMemberClick(member._id)}>
<CommandItem
key={member._id}
onSelect={() => onMemberClick(member._id)}
>
{member.user.name}
</CommandItem>
))}
Expand Down

0 comments on commit 8ad6465

Please sign in to comment.