From 8998e3858ccdb983a4a9c3842e0a7863744c7e36 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Tue, 7 Mar 2017 16:55:15 +0000 Subject: [PATCH] fixes bug where popups are happening --- frontend/src/Metamaps/GlobalUI/ImportDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Metamaps/GlobalUI/ImportDialog.js b/frontend/src/Metamaps/GlobalUI/ImportDialog.js index 31913ea6..30215fa1 100644 --- a/frontend/src/Metamaps/GlobalUI/ImportDialog.js +++ b/frontend/src/Metamaps/GlobalUI/ImportDialog.js @@ -27,7 +27,7 @@ const ImportDialog = { onFileAdded: PasteInput.handleFile, exampleImageUrl: serverData['import-example.png'], downloadScreenshot: ImportDialog.downloadScreenshot, - onExport: format => { + onExport: format => () => { window.open(`${window.location.pathname}/export.${format}`, '_blank') } }), $('.importDialogWrapper').get(0))