mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-21 18:55:16 +02:00
fix(typos): update breadcrumb key generation and enforce number coercion for optional size in Google Drive item type
This commit is contained in:
parent
495168b243
commit
77ea261e29
2 changed files with 2 additions and 2 deletions
|
|
@ -241,7 +241,7 @@ export function DashboardBreadcrumb() {
|
|||
<Breadcrumb>
|
||||
<BreadcrumbList>
|
||||
{breadcrumbs.map((item, index) => (
|
||||
<React.Fragment key={item.href || item.label}>
|
||||
<React.Fragment key={`${index}-${item.href || item.label}`}>
|
||||
<BreadcrumbItem>
|
||||
{index === breadcrumbs.length - 1 ? (
|
||||
<BreadcrumbPage>{item.label}</BreadcrumbPage>
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ export const googleDriveItem = z.object({
|
|||
mimeType: z.string(),
|
||||
isFolder: z.boolean(),
|
||||
parents: z.array(z.string()).optional(),
|
||||
size: z.number().optional(),
|
||||
size: z.coerce.number().optional(),
|
||||
iconLink: z.string().optional(),
|
||||
webViewLink: z.string().optional(),
|
||||
createdTime: z.string().optional(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue