diff --git a/server/controllers/project.controller.js b/server/controllers/project.controller.js index 15e9b3ee..9e510e4b 100644 --- a/server/controllers/project.controller.js +++ b/server/controllers/project.controller.js @@ -76,8 +76,9 @@ export function updateProject(req, res) { } res.json(savedProject); }); + } else { + res.json(updatedProject); } - res.json(updatedProject); }); }); }