mirror of
https://github.com/CyberL1/dlinux-dashboard.git
synced 2025-06-27 23:59:43 -04:00
fix(server): don't throw error on reinstall if there's no body
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user