🐛 Correction de la connexion
This commit is contained in:
1 parent
c1c6d97a77
commit
371316a130
3 files changed
+38
-39
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user