🚑 Fix history not loading if no class is selected
This commit is contained in:
@ -149,7 +149,7 @@ export async function fetchSubstitutions() {
|
||||
export async function fetchHistory() {
|
||||
const requestDate = `?date=${selectedDate.value.getTime()}`;
|
||||
const historyResponse = await fetch(
|
||||
classFilter.value == "all"
|
||||
classFilter.value == "none"
|
||||
? `${baseUrl}/history${requestDate}`
|
||||
: `${baseUrl}/history${requestDate}&class=${classFilter.value}`
|
||||
);
|
||||
|
Reference in New Issue
Block a user