Trim renamed chat name

05df2be0476c1ebeee41de77921545abb7c9f7bb

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/script.js+1 -1
@@ -8807,7 +8807,7 @@ export async function renameChat(oldFileName, newName) {
8807 is_group: !!selected_group,8807 is_group: !!selected_group,
8808 avatar_url: characters[this_chid]?.avatar,8808 avatar_url: characters[this_chid]?.avatar,
8809 original_file: `${oldFileName}.jsonl`,8809 original_file: `${oldFileName}.jsonl`,
8810 renamed_file: `${newName}.jsonl`,8810 renamed_file: `${newName.trim()}.jsonl`,
8811 };8811 };
88128812
8813 try {8813 try {