From 7b2a465abddfe6ed5bf9196d01cec8c39bdef2a0 Mon Sep 17 00:00:00 2001 From: minie4 Date: Tue, 30 Aug 2022 15:31:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fix=20history=20not=20loading=20?= =?UTF-8?q?if=20no=20class=20is=20selected?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store.js b/src/store.js index 130be9e..6e78fe5 100644 --- a/src/store.js +++ b/src/store.js @@ -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}` );