fix: mark favorites with isFavorite flag to prevent filter from hiding them
All checks were successful
CI / update (push) Successful in 1m10s

This commit is contained in:
2026-01-03 16:16:31 +01:00
parent cdcb5ee228
commit 72f0713ecc

View File

@@ -21,8 +21,14 @@ export const load: PageServerLoad = async ({ fetch, locals, params }) => {
const favorites = await res.json();
// Mark all favorites with isFavorite flag for filter compatibility
const favoritesWithFlag = favorites.map(recipe => ({
...recipe,
isFavorite: true
}));
return {
favorites,
favorites: favoritesWithFlag,
session
};
} catch (e) {