Stop rendering empty starter questions element when no questions present

This commit is contained in:
Debanjum Singh Solanky
2024-01-20 03:27:18 +05:30
parent 7c8c475c3a
commit 26bd3533d8
2 changed files with 2 additions and 2 deletions

View File

@@ -599,7 +599,7 @@
.then(response => response.json())
.then(data => {
// Render chat options, if any
if (data) {
if (data.length > 0) {
let questionStarterSuggestions = document.getElementById("question-starters");
for (let index in data) {
let questionStarter = data[index];

View File

@@ -581,7 +581,7 @@ To get started, just start typing below. You can also type / to see a list of co
.then(response => response.json())
.then(data => {
// Render chat options, if any
if (data) {
if (data.length > 0) {
let questionStarterSuggestions = document.getElementById("question-starters");
for (let index in data) {
let questionStarter = data[index];