fix: favorite link and search result styles

This commit is contained in:
Sonny
2024-09-17 16:14:25 +02:00
parent 9d4eb08bc9
commit b0e3bfa0f6
5 changed files with 17 additions and 6 deletions

View File

@@ -25,9 +25,11 @@ export default class CollectionsController {
return response.redirectToNamedRoute('dashboard');
}
// TODO: Create DTOs
return inertia.render('dashboard', {
collections,
activeCollection: activeCollection || collections[0],
collections: collections.map((collection) => collection.serialize()),
activeCollection:
activeCollection?.serialize() || collections[0].serialize(),
});
}