ace: fix error when getCompleter() wasn't passed

pull/9118/head
Alexander Zobnin 8 years ago
parent 451ecce4ab
commit 54f932e960
  1. 2
      public/app/core/components/code_editor/code_editor.ts

@ -150,7 +150,7 @@ function link(scope, elem, attrs) {
enableSnippets: true
});
if (scope.getCompleter) {
if (scope.getCompleter()) {
codeEditor.completers.push(scope.getCompleter());
}
});

Loading…
Cancel
Save