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