Skip to content

Commit 9659d4e

Browse files
committed
fixes
1 parent 3f0954c commit 9659d4e

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

frontend/src/pages/jobs/[id].tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export const getStaticProps: GetStaticProps = async ({ locale }) => {
1010
await Promise.all([
1111
prefetchSharedQueries(client, locale),
1212
queryAllJobListings(client, {
13-
language: locale,
1413
conference: process.env.conferenceCode,
1514
}),
1615
]);
@@ -24,26 +23,19 @@ export const getStaticPaths: GetStaticPaths = async () => {
2423
const client = getApolloClient();
2524

2625
const {
27-
data: { jobListings: italianJobListings },
26+
data: { jobListings },
2827
} = await queryAllJobListings(client, {
29-
language: "it",
30-
conference: process.env.conferenceCode,
31-
});
32-
const {
33-
data: { jobListings: englishJobListings },
34-
} = await queryAllJobListings(client, {
35-
language: "en",
3628
conference: process.env.conferenceCode,
3729
});
3830

3931
const paths = [
40-
...italianJobListings.map((page) => ({
32+
...jobListings.map((page) => ({
4133
params: {
4234
id: page.id,
4335
},
4436
locale: "it",
4537
})),
46-
...englishJobListings.map((page) => ({
38+
...jobListings.map((page) => ({
4739
params: {
4840
id: page.id,
4941
},

0 commit comments

Comments
 (0)