mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-07-16 17:48:51 +02:00
fix:#26 linted for eslint const rule
This commit is contained in:
@ -70,7 +70,7 @@ export async function fetchModulesByCourseAndSemester(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function fetchAllModules(): Promise<Module[]> {
|
export async function fetchAllModules(): Promise<Module[]> {
|
||||||
let modules: Module[] = [];
|
const modules: Module[] = [];
|
||||||
await fetch("/api/modules")
|
await fetch("/api/modules")
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
return response.json() as Promise<Module[]>;
|
return response.json() as Promise<Module[]>;
|
||||||
|
Reference in New Issue
Block a user