mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
convert from map to find
This commit is contained in:
parent
b84bb5d6e7
commit
17de9ef556
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user