mirror of
https://github.com/diced/zipline.git
synced 2026-01-16 06:43:11 -08:00
fix: types with thumbnails
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ export type File = {
|
||||
|
||||
thumbnail: {
|
||||
path: string;
|
||||
};
|
||||
} | null;
|
||||
|
||||
url?: string;
|
||||
similarity?: number;
|
||||
|
||||
Reference in New Issue
Block a user