diff --git a/src/pages/api/docker/stats/[...service].js b/src/pages/api/docker/stats/[...service].js index 0ca30f001..0f58d0756 100644 --- a/src/pages/api/docker/stats/[...service].js +++ b/src/pages/api/docker/stats/[...service].js @@ -30,7 +30,7 @@ export default async function handler(req, res) { }); } - const containerNames = containers.map((container) => container.Names[0].replace(/^\//, "")); + const containerNames = containers.map((container) => container.Names[0]?.replace(/^\//, "")); const containerExists = containerNames.includes(containerName); if (containerExists) {