mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 09:46:25 +02:00
fix: prevent renaming chat to the same name by updating button disabled condition
This commit is contained in:
parent
05030f6664
commit
574097126f
1 changed files with 1 additions and 1 deletions
|
|
@ -834,7 +834,7 @@ export function LayoutDataProvider({ searchSpaceId, children }: LayoutDataProvid
|
|||
</Button>
|
||||
<Button
|
||||
onClick={confirmRenameChat}
|
||||
disabled={isRenamingChat || !newChatTitle.trim()}
|
||||
disabled={isRenamingChat || !newChatTitle.trim() || newChatTitle.trim() === chatToRename?.name}
|
||||
className="gap-2"
|
||||
>
|
||||
{isRenamingChat ? (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue