From e77d485cfa3943f112bfd4c1bd7cb8fa4ddec7dd Mon Sep 17 00:00:00 2001 From: pajowu Date: Wed, 9 Mar 2022 16:43:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20selecting=20export=20type?= =?UTF-8?q?=20doing=20nothing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/pages/Editor/ExportDocumentDialog.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/pages/Editor/ExportDocumentDialog.tsx b/app/src/pages/Editor/ExportDocumentDialog.tsx index 4afc0fc2..60cc3482 100644 --- a/app/src/pages/Editor/ExportDocumentDialog.tsx +++ b/app/src/pages/Editor/ExportDocumentDialog.tsx @@ -136,6 +136,7 @@ export function ExportDocumentDialog(): JSX.Element { setFormState((state) => { return { ...state, + ...selected, path: switchExtension(state.path, selected.defaultExtension), }; });