Trim renamed chat name
| @@ -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 | }; |
| 8812 | 8812 | ||
| 8813 | try { | 8813 | try { |