1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-09-11 10:25:40 +03:00

fix(web app): when suggestions are null new npm deps tree was creating conflict

This commit is contained in:
louistiti 2022-09-04 23:48:55 +08:00
parent cf563f5f32
commit e0bb25b1d9
No known key found for this signature in database
GPG Key ID: 7ECA3DD523793FE6

View File

@ -1,4 +1,5 @@
import { io } from 'socket.io-client'
import Chatbot from './chatbot'
export default class Client {
@ -46,7 +47,7 @@ export default class Client {
})
this.socket.on('suggest', (data) => {
data.forEach((suggestionText) => {
data?.forEach((suggestionText) => {
this.addSuggestion(suggestionText)
})
})