Skip to content

Commit

Permalink
fix(frontend): Display user-submitted images in the chat interface (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
amanape authored Dec 25, 2024
1 parent b6448b9 commit 3dee207
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/services/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ const messageActions = {
store.dispatch(
addUserMessage({
content: message.args.content,
imageUrls: [],
imageUrls:
typeof message.args.image_urls === "string"
? [message.args.image_urls]
: message.args.image_urls,
timestamp: message.timestamp,
pending: false,
}),
Expand Down

0 comments on commit 3dee207

Please sign in to comment.