Reset the page every time that a filter gets updated

This commit is contained in:
Adria Navarro 2024-10-29 10:38:58 +01:00
parent ec9f854dd8
commit a7fa7368d9
1 changed files with 5 additions and 2 deletions

View File

@ -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 = [