fix(knowledge): format progress percentage to 2 decimal places
This commit is contained in:
@@ -160,7 +160,7 @@ const getRunStatusChip = (run: RunningStatus, progress: number) => {
|
||||
<CircularProgress size={16} />
|
||||
<Box sx={{ minWidth: 80 }}>
|
||||
<Typography variant="caption" color="text.secondary">
|
||||
{progress}%
|
||||
{(progress*100).toFixed(2)}%
|
||||
</Typography>
|
||||
<LinearProgress variant="determinate" value={progress} sx={{ height: 4, borderRadius: 2 }} />
|
||||
</Box>
|
||||
|
||||
@@ -500,7 +500,7 @@ function KnowledgeBaseDetail() {
|
||||
</Typography>
|
||||
<Box sx={{ display: 'flex', alignItems: 'center', gap: 2 }}>
|
||||
<Chip
|
||||
label={`${100 * (selectedFileDetails.progress || 0)}%`}
|
||||
label={`${(100 * (selectedFileDetails.progress || 0)).toFixed(2)}%`}
|
||||
color="primary"
|
||||
size="small"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user