[editor] Fix js error in the sql context highlighter
huePubSub.publish('editor.active.locations', { type: snippet.type(), locations: e.data.locations });
e.data.locations.forEach(function (location) {
+ if ((location.type === 'table' || location.type === 'column') && typeof location.identifierChain === 'undefined') {
+ return;
+ }
if ((location.type === 'table' && location.identifierChain.length > 1) || (location.type === 'column' && location.identifierChain.length > 2)) {
var clonedChain = location.identifierChain.concat();
if (apiHelper.containsDatabase(snippet.type(), clonedChain[0].name)) {
