fix(client): make the userId optional in the document details page for now

This commit is contained in:
perf3ct 2025-07-10 19:59:35 +00:00
parent 96c47af2c0
commit 0ae447f3db
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ interface FileIntegrityDisplayProps {
mimeType: string; mimeType: string;
createdAt: string; createdAt: string;
updatedAt: string; updatedAt: string;
userId: string; userId?: string;
compact?: boolean; compact?: boolean;
} }
@ -325,7 +325,7 @@ const FileIntegrityDisplay: React.FC<FileIntegrityDisplayProps> = ({
Uploaded By Uploaded By
</Typography> </Typography>
<Chip <Chip
label={`User: ${userId.substring(0, 8)}...`} label={`User: ${userId ? userId.substring(0, 8) + '...' : 'Unknown'}`}
size="small" size="small"
sx={{ sx={{
fontSize: '0.75rem', fontSize: '0.75rem',