fix owner of dashboard

This commit is contained in:
Nate Kelley 2025-04-09 14:34:36 -06:00
parent f31294918b
commit d73d780d5a
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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} />;
} }
} }
]; ];