Skip to content

Commit 17ce168

Browse files
committed
fix: no 404 if empty array in collection route
1 parent 4673b59 commit 17ce168

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/app/api/collections/route.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ export async function GET(request: NextRequest) {
2020
}
2121
)
2222

23-
if (!collections) {
24-
return notFound()
25-
}
26-
2723
return NextResponse.json({
2824
collections,
2925
count,

0 commit comments

Comments
 (0)