fix(client): make the userId optional in the document details page for now
This commit is contained in:
parent
c90c7201e5
commit
1178493030
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue