[] = [
},
cell: ({ row }) => {
const file = row.original;
- if (file.type.startsWith('image')) {
+ if (file.type?.startsWith('image')) {
return (
[] = [
className="relative h-10 w-10 shrink-0 overflow-hidden rounded-md"
source={file.source}
/>
- {file.filename}
+ {file.filename}
);
}
@@ -212,4 +213,4 @@ export const columns: ColumnDef[] = [
return `${value}${suffix}`;
},
},
-];
\ No newline at end of file
+];