Skip to content

Commit e192c99

Browse files
authored
🔧 fix: Apply Convo Export filename sanitization at export, not input (#8779)
Co-authored-by: Woosub Kim <[email protected]>
1 parent 056172f commit e192c99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎client/src/components/Nav/ExportConversation/ExportModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function ExportModal({
7272

7373
const { exportConversation } = useExportConversation({
7474
conversation,
75-
filename,
75+
filename: filenamify(filename),
7676
type,
7777
includeOptions,
7878
exportBranches,
@@ -95,7 +95,7 @@ export default function ExportModal({
9595
<Input
9696
id="filename"
9797
value={filename}
98-
onChange={(e) => setFileName(filenamify(e.target.value || ''))}
98+
onChange={(e) => setFileName(e.target.value || '')}
9999
placeholder={localize('com_nav_export_filename_placeholder')}
100100
/>
101101
</div>

0 commit comments

Comments
 (0)