We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88af79f commit 786a1a4Copy full SHA for 786a1a4
src/ChatConfigWindow.tsx
@@ -31,6 +31,7 @@ export default function ChatConfigWindow(props: Props) {
31
if (dataEdit.name === '') {
32
dataEdit.name = props.session.name
33
}
34
+ dataEdit.name = dataEdit.name.trim()
35
props.save(dataEdit)
36
props.close()
37
@@ -49,7 +50,7 @@ export default function ChatConfigWindow(props: Props) {
49
50
fullWidth
51
variant="outlined"
52
value={dataEdit.name}
- onChange={(e) => setDataEdit({ ...dataEdit, name: e.target.value.trim() })}
53
+ onChange={(e) => setDataEdit({ ...dataEdit, name: e.target.value })}
54
/>
55
</DialogContent>
56
<DialogActions>
0 commit comments