Skip to content

Commit

Permalink
fix(chat): fix edit mobile context menu with restricted model
Browse files Browse the repository at this point in the history
  • Loading branch information
Magomed-Elbi Dzhukalaev committed Jan 8, 2025
1 parent 19614fc commit 2aa8a03
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apps/chat/src/components/Chat/ChatMessage/MessageButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -387,15 +387,13 @@ export const MessageMobileButtons = ({
}

return (
!editDisabled &&
!isMessageStreaming &&
!isConversationInvalid && (
<>
{isEditTemplatesAvailable && (
<MenuItem
className="hover:bg-accent-primary-alpha focus:visible disabled:cursor-not-allowed group-hover:visible"
onClick={() => onToggleTemplatesEditing()}
disabled={editDisabled}
item={
<div className="flex items-center gap-3 whitespace-nowrap">
<IconListDetails
Expand Down

0 comments on commit 2aa8a03

Please sign in to comment.