From a1a436300d284f7e739ebbf21f9e04e86ed2ed68 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 11 Feb 2022 21:27:28 +0100 Subject: [PATCH] fix: Check sentry --- src/routes/destinations/[id]/index.json.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/destinations/[id]/index.json.ts b/src/routes/destinations/[id]/index.json.ts index 3b878f9ca..e6fc9d075 100644 --- a/src/routes/destinations/[id]/index.json.ts +++ b/src/routes/destinations/[id]/index.json.ts @@ -12,7 +12,8 @@ export const get: RequestHandler = async (event) => { try { const destination = await db.getDestination({ id, teamId }); const settings = await db.listSettings(); - const state = await checkContainer(destination.engine, 'coolify-haproxy'); + const state = + destination?.engine && (await checkContainer(destination.engine, 'coolify-haproxy')); return { status: 200, body: {