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 c90c7201e5
commit 1178493030
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232
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',