fix ghost load for dashboard campaign tables

Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
Ronni Skansing
2026-02-19 00:20:18 +01:00
parent f7f972bf5c
commit 738cd6e8a5
2 changed files with 5 additions and 5 deletions
@@ -104,9 +104,9 @@
const refresh = async () => {
await Promise.all([
refreshActiveCampaigns(false),
refreshScheduledCampaigns(false),
refreshCompletedCampaigns(false)
refreshActiveCampaigns(true),
refreshScheduledCampaigns(true),
refreshCompletedCampaigns(true)
]);
};
@@ -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 () => {