mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-02-05 05:00:07 +00:00
fix: empty data
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user