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';
|
import { cn } from '@/lib/utils';
|
||||||
|
|
||||||
export interface AvatarProps {
|
export interface AvatarProps {
|
||||||
image?: string;
|
image?: string | null;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
className?: string;
|
className?: string;
|
||||||
fallbackClassName?: string;
|
fallbackClassName?: string;
|
||||||
|
|
|
@ -62,8 +62,8 @@ const columns: BusterListColumn[] = [
|
||||||
dataIndex: 'owner',
|
dataIndex: 'owner',
|
||||||
title: 'Owner',
|
title: 'Owner',
|
||||||
width: 55,
|
width: 55,
|
||||||
render: (_, data) => {
|
render: (_, data: BusterDashboardListItem) => {
|
||||||
return <Avatar image={data?.avatar_url} name={data?.name} size={18} />;
|
return <Avatar image={data?.owner?.avatar_url} name={data?.owner?.name} size={18} />;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue