0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 02:22:49 +00:00

Fix Clone to New broken with #2114

This commit is contained in:
Trevor Buckner
2022-06-09 01:09:18 -04:00
parent 204b379fcb
commit 5601b932c8

View File

@@ -229,7 +229,7 @@ app.get('/edit/:id', asyncHandler(getBrew('edit')), (req, res, next)=>{
app.get('/new/:id', asyncHandler(getBrew('share')), (req, res, next)=>{
sanitizeBrew(req.brew, 'share');
splitTextStyleAndMetadata(req.brew);
req.brew.title = `CLONE - ${brew.title}`;
req.brew.title = `CLONE - ${req.brew.title}`;
return next();
});