From a7fa7368d9c223400cea9f67bd6645ea428739e3 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 29 Oct 2024 10:38:58 +0100 Subject: [PATCH] Reset the page every time that a filter gets updated --- .../app/[application]/settings/automations/index.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/settings/automations/index.svelte b/packages/builder/src/pages/builder/app/[application]/settings/automations/index.svelte index 6518b6cf58..02b063bca8 100644 --- a/packages/builder/src/pages/builder/app/[application]/settings/automations/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/settings/automations/index.svelte @@ -38,8 +38,11 @@ let loaded = false $: app = $appsStore.apps.find(app => $appStore.appId?.includes(app.appId)) $: licensePlan = $auth.user?.license?.plan - $: page = $pageInfo.page - $: fetchLogs(automationId, status, page, timeRange) + + // Reset the page every time that a filter gets updated + $: pageInfo.reset(), automationId, status, timeRange + + $: fetchLogs(automationId, status, $pageInfo.page, timeRange) $: isCloud = $admin.cloud $: chainAutomations = app?.automations?.chainAutomations ?? !isCloud const timeOptions = [