fix: types with thumbnails

This commit is contained in:
diced
2023-09-17 15:01:33 -07:00
parent 01f94245c8
commit 2e46f69a56
2 changed files with 2 additions and 2 deletions

View File

@@ -124,7 +124,7 @@ export default function DashboardFileType({
maxHeight: dbFile ? '100vh' : 100,
},
}}
src={`/raw/${(file as DbFile).thumbnail.path}`}
src={`/raw/${(file as DbFile).thumbnail!.path}`}
alt={file.name}
/>

View File

@@ -17,7 +17,7 @@ export type File = {
thumbnail: {
path: string;
};
} | null;
url?: string;
similarity?: number;