Skip to content

Commit

Permalink
Merge pull request #362 from claushaas/staging
Browse files Browse the repository at this point in the history
use Professor tag key for tags
  • Loading branch information
claushaas authored Sep 10, 2024
2 parents b15dbc6 + e07ad83 commit b88a282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/courses.$course-slug.$module-slug_.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const loader = defineLoader(async ({request, params}: LoaderFunctionArgs)

const url = new URL(request.url);

const appliedTags = [...url.searchParams.entries()].filter(([key]) => key === 'Duração' || key === 'Dificuldade' || key === 'Técnicas' || key === 'Ênfase');
const appliedTags = [...url.searchParams.entries()].filter(([key]) => key === 'Duração' || key === 'Dificuldade' || key === 'Técnicas' || key === 'Ênfase' || key === 'Professor');

const pageString = url.searchParams.get('page');
const page = (pageString && !Number.isNaN(pageString)) ? Number(pageString) : 1;
Expand Down

0 comments on commit b88a282

Please sign in to comment.