|
@@ -3264,6 +3264,9 @@
|
|
|
huePubSub.publish('editor.active.locations', { type: snippet.type(), locations: e.data.locations });
|
|
huePubSub.publish('editor.active.locations', { type: snippet.type(), locations: e.data.locations });
|
|
|
|
|
|
|
|
e.data.locations.forEach(function (location) {
|
|
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)) {
|
|
if ((location.type === 'table' && location.identifierChain.length > 1) || (location.type === 'column' && location.identifierChain.length > 2)) {
|
|
|
var clonedChain = location.identifierChain.concat();
|
|
var clonedChain = location.identifierChain.concat();
|
|
|
if (apiHelper.containsDatabase(snippet.type(), clonedChain[0].name)) {
|
|
if (apiHelper.containsDatabase(snippet.type(), clonedChain[0].name)) {
|