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:
parent
cf563f5f32
commit
e0bb25b1d9
@ -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)
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user