dont wait for api response before closing form and showing toast

This commit is contained in:
Daniel Roth 2026-03-04 15:10:56 +00:00
parent c69d00250a
commit d1edf1cba5

View file

@ -174,7 +174,8 @@ export function RecommendationsOptions({
const payload = mapScenariosToPayload(selectedScenarios, portfolioId);
const response = await fetch("/api/plan/categorisation", {
// don't worry about waiting for this response
fetch("/api/plan/categorisation", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload)