diff --git a/frontend/src/ts/ape/endpoints/configuration.ts b/frontend/src/ts/ape/endpoints/configuration.ts index 11216d7b1..39f8ad7db 100644 --- a/frontend/src/ts/ape/endpoints/configuration.ts +++ b/frontend/src/ts/ape/endpoints/configuration.ts @@ -3,7 +3,7 @@ export default class Root { this.httpClient = httpClient; } - async get(): Ape.EndpointResponse { + async get(): Ape.EndpointResponse { return await this.httpClient.get("/configuration"); } } diff --git a/frontend/src/ts/ape/server-configuration.ts b/frontend/src/ts/ape/server-configuration.ts index 6edcb0b1e..1873c9737 100644 --- a/frontend/src/ts/ape/server-configuration.ts +++ b/frontend/src/ts/ape/server-configuration.ts @@ -13,6 +13,6 @@ export async function sync(): Promise { console.error("Could not fetch configuration", response.message); return; } else { - config = response.data as SharedTypes.Configuration; + config = response.data ?? undefined; } }