mirror of https://github.com/buster-so/buster.git
fix owner of dashboard
This commit is contained in:
parent
f31294918b
commit
d73d780d5a
|
@ -6,7 +6,7 @@ import { BusterLogo } from '@/assets/svg/BusterLogo';
|
|||
import { cn } from '@/lib/utils';
|
||||
|
||||
export interface AvatarProps {
|
||||
image?: string;
|
||||
image?: string | null;
|
||||
name?: string | null;
|
||||
className?: string;
|
||||
fallbackClassName?: string;
|
||||
|
|
|
@ -62,8 +62,8 @@ const columns: BusterListColumn[] = [
|
|||
dataIndex: 'owner',
|
||||
title: 'Owner',
|
||||
width: 55,
|
||||
render: (_, data) => {
|
||||
return <Avatar image={data?.avatar_url} name={data?.name} size={18} />;
|
||||
render: (_, data: BusterDashboardListItem) => {
|
||||
return <Avatar image={data?.owner?.avatar_url} name={data?.owner?.name} size={18} />;
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue