diff --git a/src/routes/containers/_id/reinstall.ts b/src/routes/containers/_id/reinstall.ts index 0f5436d..34ab8b3 100644 --- a/src/routes/containers/_id/reinstall.ts +++ b/src/routes/containers/_id/reinstall.ts @@ -21,8 +21,10 @@ export default (fastify: FastifyInstance) => { Body: CreateContainerBody; }>, ) => { - if (!(await getImage(req.body?.image).inspect()).Id) { - return; + if (req.body) { + if (!(await getImage(req.body?.image).inspect()).Id) { + return; + } } const oldContainer = getContainer(req.params.id);