Skip to content

Commit 8316a97

Browse files
committed
fix build error
1 parent 1f66f33 commit 8316a97

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/pages/analytics/graphql-api/api/[name].astro

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,21 @@ export const getStaticPaths = async () => {
1414
const [schema] = await getCollection("graphql-api");
1515
const groups = ["account", "zone", "organization"];
1616
17-
return groups.flatMap((el) => {
17+
return groups.flatMap((group) => {
1818
const query = schema.data.types.find(
19-
(type: { name: string }) => type.name === el,
19+
(type: { name: string }) => type.name === group,
2020
);
2121
return (
22-
query?.fields.map((field: Field) => {
23-
return {
24-
params: {
25-
name: `${el}.${field.name}`,
26-
},
27-
props: { query: field },
28-
};
29-
}) || []
22+
query?.fields
23+
.filter((el) => el.name !== `${group}Tag`)
24+
.map((field: Field) => {
25+
return {
26+
params: {
27+
name: `${group}.${field.name}`,
28+
},
29+
props: { query: field },
30+
};
31+
}) || []
3032
);
3133
});
3234
};

0 commit comments

Comments
 (0)