🐛 Correction de la connexion

This commit is contained in:
Orionis312050 committed 2026-05-07 21:32:55 +02:00
1 parent c1c6d97a77
commit 371316a130
3 files changed
+38 -39

No files matched your search

+1 -1
View File
@@ -94,7 +94,7 @@ export default function ServiceView() {
const allServices = await svcRes.json();
const logs = await logsRes.json();
const found = allServices.find((s: LogService) => s.id === Number(id));
const found = Array.isArray(allServices) ? allServices.find((s: LogService) => s.id === Number(id)) : null;
if (found) {
setService(found);