fix: repair frontend production build regressions
This commit is contained in:
@@ -54,9 +54,14 @@ function formatBytes(bytes?: number | null) {
|
||||
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
||||
}
|
||||
|
||||
function displayMetadata(value?: string | null) {
|
||||
return value && value.trim().length > 0 ? value : "-";
|
||||
}
|
||||
|
||||
export default function AdminSystemPage() {
|
||||
const [status, setStatus] = useState<SystemStatus | null>(null);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [runningProbe, setRunningProbe] = useState(false);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
|
||||
const load = async () => {
|
||||
@@ -193,13 +198,3 @@ export default function AdminSystemPage() {
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
.summarizer.lastError}</Alert> : null}
|
||||
</Paper>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
tus.summarizer.lastError}</Alert> : null}
|
||||
</Paper>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user