Skip to content

Commit c5c7552

Browse files
committed
fix: update image detail query to use correct tags function
1 parent f95fbbb commit c5c7552

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/[lang]/detail/[...slug]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { ImageDetail } from '@/components/ImageDetail';
22
import { hl } from '@/lib/hl';
33
import {
4-
queryImageDetailTags,
54
queryImageDetailWithTag,
65
queryImageOrgDetailWithTag,
6+
queryImageTags,
77
} from '@/lib/images';
88
import { Metadata } from 'next';
99

@@ -22,7 +22,7 @@ export async function generateMetadata({ params }: DetailProps) {
2222
}
2323

2424
export default async function Detail({ params: { slug } }: DetailProps) {
25-
const tags = await queryImageDetailTags(decodeURIComponent(slug[1]));
25+
const tags = await queryImageTags(decodeURIComponent(slug[1]));
2626
const details = await queryImageDetailWithTag(
2727
decodeURIComponent(slug[1]),
2828
).then(async (response) => {

0 commit comments

Comments
 (0)