fix: remove invalid isPhotography check for albums
- Remove check for non-existent isPhotography field on Album model - Albums now display correctly when published - Fixes "Content not found" error for published albums 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
7a3cde0575
commit
a9cbdbf280
1 changed files with 2 additions and 2 deletions
|
|
@ -7,8 +7,8 @@ export const load: PageLoad = async ({ params, fetch }) => {
|
|||
if (albumResponse.ok) {
|
||||
const album = await albumResponse.json()
|
||||
|
||||
// Check if this is a photography album and published
|
||||
if (album.isPhotography && album.status === 'published') {
|
||||
// Check if album is published
|
||||
if (album.status === 'published') {
|
||||
return {
|
||||
type: 'album' as const,
|
||||
album,
|
||||
|
|
|
|||
Loading…
Reference in a new issue