File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
src/pages/analytics/graphql-api/api Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff 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};
You can’t perform that action at this time.
0 commit comments