diff --git a/src/ui/public/field_editor/field_editor.js b/src/ui/public/field_editor/field_editor.js index 0b9e861cbd740..ed66858deaf52 100644 --- a/src/ui/public/field_editor/field_editor.js +++ b/src/ui/public/field_editor/field_editor.js @@ -162,7 +162,8 @@ uiModules return $http.get(chrome.addBasePath('/api/kibana/scripts/languages')) .then((res) => res.data) .catch(() => { - return notify.error('Error getting available scripting languages from Elasticsearch'); + notify.error('Error getting available scripting languages from Elasticsearch'); + return []; }); }