diff --git a/frontend/src/Metamaps/Import.js b/frontend/src/Metamaps/Import.js index b63322e7..d4051ddb 100644 --- a/frontend/src/Metamaps/Import.js +++ b/frontend/src/Metamaps/Import.js @@ -388,7 +388,7 @@ const Import = { ) }, - handleTEXT: function(text, opts = {}) { + handleText: function(text, opts = {}) { let coords = opts.coords if (!coords || coords.x === undefined || coords.y === undefined) { coords = AutoLayout.getNextCoord({ mappings: DataModel.Mappings }) @@ -409,12 +409,7 @@ const Import = { url, coords.x, coords.y, - importId, - { - success: function(topic) { - return - } - } + importId ) }, diff --git a/frontend/src/Metamaps/PasteInput.js b/frontend/src/Metamaps/PasteInput.js index cc7838ed..4083db03 100644 --- a/frontend/src/Metamaps/PasteInput.js +++ b/frontend/src/Metamaps/PasteInput.js @@ -72,7 +72,7 @@ const PasteInput = { let textItems = text.split('\n') if (textItems.length === 1) { if (textItems[0].trim() !== '') { - Import.handleTEXT(textItems[0].trim(), coords) + Import.handleText(textItems[0].trim(), coords) } } else if (window.confirm('Are you sure you want to create ' + textItems.length + ' new topics?')) { textItems.forEach(item => {