mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 19:07:40 +01:00
Trim renamed chat name
This commit is contained in:
parent
a670ec1879
commit
05df2be047
@ -8807,7 +8807,7 @@ export async function renameChat(oldFileName, newName) {
|
|||||||
is_group: !!selected_group,
|
is_group: !!selected_group,
|
||||||
avatar_url: characters[this_chid]?.avatar,
|
avatar_url: characters[this_chid]?.avatar,
|
||||||
original_file: `${oldFileName}.jsonl`,
|
original_file: `${oldFileName}.jsonl`,
|
||||||
renamed_file: `${newName}.jsonl`,
|
renamed_file: `${newName.trim()}.jsonl`,
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user