summaryrefslogtreecommitdiffstats
path: root/public/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/index.js')
-rw-r--r--public/js/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 15f8d02bbd..882f19e13d 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2936,14 +2936,14 @@ function initTopicbar() {
let found = false;
for (let i=0;i < res.topics.length;i++) {
// skip currently added tags
- if (current_topics.indexOf(res.topics[i].Name) != -1){
+ if (current_topics.indexOf(res.topics[i].topic_name) != -1){
continue;
}
- if (res.topics[i].Name.toLowerCase() === query.toLowerCase()){
+ if (res.topics[i].topic_name.toLowerCase() === query.toLowerCase()){
found_query = true;
}
- formattedResponse.results.push({"description": res.topics[i].Name, "data-value": res.topics[i].Name});
+ formattedResponse.results.push({"description": res.topics[i].topic_name, "data-value": res.topics[i].topic_name});
found = true;
}
formattedResponse.success = found;