diff --git a/packages/component-manuscript-manager/src/routes/collections/delete.js b/packages/component-manuscript-manager/src/routes/collections/delete.js index d207fd469213d93eec145a43a59914f71d14d736..facc2e7685df48b0f216a92674664a3f9c35e4b1 100644 --- a/packages/component-manuscript-manager/src/routes/collections/delete.js +++ b/packages/component-manuscript-manager/src/routes/collections/delete.js @@ -20,11 +20,6 @@ module.exports = models => async (req, res) => { collection = await models.Collection.find(collectionId) const fragmentId = collection.fragments[0] - if (!collection.fragments.includes(fragmentId)) - return res.status(400).json({ - error: `Collection and fragment do not match.`, - }) - fragment = await models.Fragment.find(fragmentId) const authsome = authsomeHelper.getAuthsome(models)