diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee index a8afdeaa44..7b4889a81e 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee @@ -66,12 +66,13 @@ define [ } if references.keys and references.keys.length > 0 references.keys.forEach (key) -> - result.push({ - caption: "\\#{commandName}{#{previousArgsCaption}#{key}", - value: "\\#{commandName}{#{previousArgs}#{key}", - meta: "reference", - score: 10000 - }) + if !(key in [null, undefined]) + result.push({ + caption: "\\#{commandName}{#{previousArgsCaption}#{key}", + value: "\\#{commandName}{#{previousArgs}#{key}", + meta: "reference", + score: 10000 + }) callback null, result else callback null, result