mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-04 22:02:16 +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>
|
||||||
<Button
|
<Button
|
||||||
onClick={confirmRenameChat}
|
onClick={confirmRenameChat}
|
||||||
disabled={isRenamingChat || !newChatTitle.trim()}
|
disabled={isRenamingChat || !newChatTitle.trim() || newChatTitle.trim() === chatToRename?.name}
|
||||||
className="gap-2"
|
className="gap-2"
|
||||||
>
|
>
|
||||||
{isRenamingChat ? (
|
{isRenamingChat ? (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue