guard against null and undefined keys in \cite{} autocomplete

This commit is contained in:
Shane Kilkelly 2016-02-29 15:52:02 +00:00
parent 34bfdcc246
commit b005f8233e

View file

@ -66,6 +66,7 @@ define [
}
if references.keys and references.keys.length > 0
references.keys.forEach (key) ->
if !(key in [null, undefined])
result.push({
caption: "\\#{commandName}{#{previousArgsCaption}#{key}",
value: "\\#{commandName}{#{previousArgs}#{key}",