Skip to content

Commit

Permalink
🐛 Fixed no system on search && naming
Browse files Browse the repository at this point in the history
  • Loading branch information
nwrenger committed Aug 12, 2023
1 parent 5851e33 commit efe5e70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/materials/Overview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
{#if items && items.data}
{#each items.data as item}
<ButtonGradient
href="/materials/browse?{type == 'grade'
href="/materials/browse?system={system}&{type == 'grade'
? `grade_number=${item.number}`
: `subject=${item.name}`}&system={system}"
: `subject=${item.name}`}"
color={item.color}
>
{type == "grade" ? item.number : item.name_de}
Expand Down
3 changes: 2 additions & 1 deletion src/components/materials/Search.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
}
onMount(() => {
search = getParam("search");
if (!system) system = getParam("system");
grade = getParam("grade_number");
subject = getParam("subject");
search = getParam("search");
});
</script>

Expand Down

0 comments on commit efe5e70

Please sign in to comment.