diff --git a/frontend/src/routes/dashboard/campaigns/+page.svelte b/frontend/src/routes/dashboard/campaigns/+page.svelte index c5b1ae2..898e94e 100644 --- a/frontend/src/routes/dashboard/campaigns/+page.svelte +++ b/frontend/src/routes/dashboard/campaigns/+page.svelte @@ -104,9 +104,9 @@ const refresh = async () => { await Promise.all([ - refreshActiveCampaigns(false), - refreshScheduledCampaigns(false), - refreshCompletedCampaigns(false) + refreshActiveCampaigns(true), + refreshScheduledCampaigns(true), + refreshCompletedCampaigns(true) ]); }; diff --git a/frontend/src/routes/dashboard/events/+page.svelte b/frontend/src/routes/dashboard/events/+page.svelte index b316ca3..aeee568 100644 --- a/frontend/src/routes/dashboard/events/+page.svelte +++ b/frontend/src/routes/dashboard/events/+page.svelte @@ -62,14 +62,14 @@ }; // hooks - onMount(() => { + onMount(async () => { const context = appStateService.getContext(); if (context) { contextCompanyID = context.companyID; contextCompanyName = context.companyName; } setEventTypes(); - refreshEvents(true); + await refreshEvents(true); eventsTableURLParams.onChange(() => refreshEvents(true)); return () => {