We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ad64b3 commit 44bfe64Copy full SHA for 44bfe64
packages/ai-bot/helpers.ts
@@ -193,7 +193,7 @@ export function constructHistory(
193
continue;
194
}
195
if (event.content.msgtype === APP_BOXEL_MESSAGE_MSGTYPE) {
196
- let { attachedCardsEventIds } = event.content.data;
+ let { attachedCardsEventIds } = event.content.data ?? {};
197
if (attachedCardsEventIds && attachedCardsEventIds.length > 0) {
198
event.content.data.attachedCards = attachedCardsEventIds.map(
199
(id: string) => serializedCardFromFragments(id, cardFragments),
0 commit comments