mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
Merge branch 'main' into cloudflare
This commit is contained in:
commit
cb514e13c5
@ -43,7 +43,7 @@ export default function ServerDetailClient({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const { data: allFallbackData } = useSWRImmutable<ServerApi>(
|
const { data: allFallbackData, isLoading } = useSWRImmutable<ServerApi>(
|
||||||
"/api/server",
|
"/api/server",
|
||||||
nezhaFetcher,
|
nezhaFetcher,
|
||||||
);
|
);
|
||||||
@ -51,7 +51,7 @@ export default function ServerDetailClient({
|
|||||||
(item) => item.id === server_id,
|
(item) => item.id === server_id,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!fallbackData) {
|
if (!fallbackData && !isLoading) {
|
||||||
notFound();
|
notFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nezha-dash",
|
"name": "nezha-dash",
|
||||||
"version": "1.5.3",
|
"version": "1.5.3-fix",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev -p 3040",
|
"dev": "next dev -p 3040",
|
||||||
|
Loading…
Reference in New Issue
Block a user