chore: another hotfix patch on getConvoTitle

This commit is contained in:
Daniel Avila 2023-03-20 02:30:08 -04:00
parent 39819b744c
commit 0b75d5d6fe

View file

@ -198,7 +198,8 @@ module.exports = {
if (convo && !convo.title) {
return null;
} else {
return convo.title;
// TypeError: Cannot read properties of null (reading 'title')
return convo?.title || 'New Chat';
}
} catch (error) {
console.log(error);