fix: error when editing collection

This commit is contained in:
Sonny
2024-05-25 17:36:45 +02:00
committed by Sonny
parent 8b161dcf49
commit 9481b0ad7d
7 changed files with 20 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ export default class CollectionsController {
return response.redirectToNamedRoute('collection.create-form');
}
const activeCollectionId = request.qs()?.collectionId ?? '';
const activeCollectionId = Number(request.qs()?.collectionId ?? '');
const activeCollection = collections.find(
(c) => c.id === activeCollectionId
);