diff --git a/src/legacy/core_plugins/console/public/quarantined/src/sense_editor/row_parser.js b/src/legacy/core_plugins/console/public/quarantined/src/sense_editor/row_parser.js index f1e3268454d52..c1bba107de784 100644 --- a/src/legacy/core_plugins/console/public/quarantined/src/sense_editor/row_parser.js +++ b/src/legacy/core_plugins/console/public/quarantined/src/sense_editor/row_parser.js @@ -48,7 +48,7 @@ function RowParser(editor) { return MODE.BETWEEN_REQUESTS; } // shouldn't really happen - if (mode !== 'start' && mode !== 'start-sql') { + if (mode !== 'start') { return MODE.IN_REQUEST; } let line = (session.getLine(row) || '').trim(); diff --git a/src/legacy/core_plugins/console/public/quarantined/src/utils.js b/src/legacy/core_plugins/console/public/quarantined/src/utils.js index a083f37c4c71c..6f0009106f048 100644 --- a/src/legacy/core_plugins/console/public/quarantined/src/utils.js +++ b/src/legacy/core_plugins/console/public/quarantined/src/utils.js @@ -19,6 +19,8 @@ import _ from 'lodash'; +const pipe = _.flow; + const utils = {}; utils.textFromRequest = function (request) { @@ -62,7 +64,7 @@ utils.reformatData = function (data, indent) { // this operation can probably bundle A -> B with the B -> A functionality. const collapseXLangMarkers = text => text.replace(`"""sql`, `"""`); -utils.collapseLiteralStrings = _.pipe( +utils.collapseLiteralStrings = pipe( collapseXLangMarkers, function (data) { const splitData = data.split(`"""`);