diff --git a/striker-ui-api/src/lib/request_handlers/server/getServerDetail.ts b/striker-ui-api/src/lib/request_handlers/server/getServerDetail.ts index 38b9b180..c0f5e069 100644 --- a/striker-ui-api/src/lib/request_handlers/server/getServerDetail.ts +++ b/striker-ui-api/src/lib/request_handlers/server/getServerDetail.ts @@ -90,10 +90,10 @@ export const getServerDetail: RequestHandler< return a.timestamp > b.timestamp ? 1 : -1; }); - stdoutVar(ssMetas, `Server screenshots: `); - const ssMetaLatest = ssMetas.pop(); + stdoutVar(ssMetaLatest, `Latest server screenshot: `); + if (ssMetaLatest) { const { name } = ssMetaLatest;