Skip to content

Commit

Permalink
disable prefetching published docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ibastawisi committed Jan 11, 2025
1 parent 6a66ab9 commit a182cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DocumentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const DocumentCard: React.FC<{ userDocument?: UserDocument, user?: User, sx?: Sx

return (
<Card variant="outlined" sx={{ display: "flex", flexDirection: "column", justifyContent: "space-between", height: "100%", maxWidth: "100%", ...sx }}>
<CardActionArea component={RouterLink} prefetch={!isEditable} scroll={!isEditable} href={document ? href : "/"} sx={{ flexGrow: 1 }}>
<CardActionArea component={RouterLink} prefetch={false} href={document ? href : "/"} sx={{ flexGrow: 1 }}>
<CardHeader sx={{ alignItems: "start", '& .MuiCardHeader-content': { overflow: "hidden", textOverflow: "ellipsis" } }}
title={document ? document.name : <Skeleton variant="text" width={190} />}
subheader={
Expand Down

0 comments on commit a182cb4

Please sign in to comment.