mirror of
https://github.com/woodchen-ink/nezha-dash-v1.git
synced 2025-07-18 09:31:55 +08:00
fix: empty data
This commit is contained in:
parent
6e676022e9
commit
e0fa019a79
@ -51,12 +51,12 @@ export function NetworkChart({
|
||||
|
||||
if (!monitorData) return <NetworkChartLoading />;
|
||||
|
||||
if (monitorData?.success && monitorData.data.length === 0) {
|
||||
if (monitorData?.success && !monitorData.data) {
|
||||
return (
|
||||
<>
|
||||
<div className="flex flex-col items-center justify-center">
|
||||
<p className="text-sm font-medium opacity-40"></p>
|
||||
<p className="text-sm font-medium opacity-40">
|
||||
<p className="text-sm font-medium opacity-40 mb-4">
|
||||
{t("monitor.noData")}
|
||||
</p>
|
||||
</div>
|
||||
|
@ -40,7 +40,9 @@ export const ServiceTracker: React.FC = () => {
|
||||
}
|
||||
|
||||
if (!serviceData?.data?.services) {
|
||||
return <div className="mt-4">No service data available</div>;
|
||||
return (
|
||||
<div className="mt-4 font-thin text-sm">No service data available</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user