Skip to content

Commit

Permalink
fix: use chatitem.icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Vsion committed Mar 29, 2024
1 parent 6f9ea86 commit 1936d50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/layout/AppLayout/SideBar/Chats/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const useStyles = createStyles(({ token }) => {
interface Props {
data: {
id: string;
icon: string; // img base64 = =
title: string;
desc: string;
app_namespace: string;
Expand Down Expand Up @@ -187,7 +188,7 @@ const ChatItem: any = (props: Props) => {
}}
>
<div className={styles.icon}>
<Image alt="default_chat" height={42} src="/default_chat.png" width={42} />
<Image alt="default_chat" height={42} src={data.icon || '/default_chat.png'} width={42} />
</div>
<div className={styles.content}>
<Typography.Paragraph className={styles.title} ellipsis>
Expand Down

0 comments on commit 1936d50

Please sign in to comment.