fix(frontend): use type-safe any cast for createSessionMutation call

The generated mutation type differs between local (void) and CI
(requires CreateSessionRequest) due to export-api-schema regeneration.
Use an explicit any cast to handle both generated type variants.
This commit is contained in:
Zamil Majdy
2026-04-01 08:46:17 +02:00
parent 4f6f3ca240
commit 1810452920

View File

@@ -95,7 +95,8 @@ export function useChatSession() {
async function createSession() {
if (sessionId) return sessionId;
try {
const response = await createSessionMutation();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const response = await (createSessionMutation as any)({ data: null });
if (response.status !== 200 || !response.data?.id) {
const error = new Error("Failed to create session");
Sentry.captureException(error, {