in frontend/src/features/query_builder/KeyWordFinder.js [7:21]
getConnectedNames(kw) {
const key = kw.toUpperCase();
if (!this.allKeywords.has(key)) {
return KeyWordFinder.INITIAL;
}
const relationships = this.keywordMap[key];
const keywordList = Object.keys(this.keywordMap);
const relatedKeys = [];
relationships.forEach((element, index) => {
if (element !== '0') {
relatedKeys.push(keywordList[index]);
}
});
return relatedKeys;
}