From 17de9ef556b78f43e54b0f4ed656f8bb6af92fd4 Mon Sep 17 00:00:00 2001 From: Opender Singh Date: Fri, 2 Jul 2021 09:04:06 +1200 Subject: [PATCH] convert from map to find --- packages/insomnia-app/app/ui/redux/modules/global.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/insomnia-app/app/ui/redux/modules/global.tsx b/packages/insomnia-app/app/ui/redux/modules/global.tsx index 8f26c1b25..f48d1b47f 100644 --- a/packages/insomnia-app/app/ui/redux/modules/global.tsx +++ b/packages/insomnia-app/app/ui/redux/modules/global.tsx @@ -505,7 +505,7 @@ function showSelectExportTypeModal(onCancel: () => void, onDone: (selectedFormat }, ]; const lastFormat = window.localStorage.getItem('insomnia.lastExportFormat'); - const defaultValue = options.map(({ value }) => value).includes(lastFormat) ? lastFormat : VALUE_JSON; + const defaultValue = options.find(({ value }) => value === lastFormat ) ? lastFormat : VALUE_JSON; showModal(SelectModal, { title: 'Select Export Type',