fix: the Automations list reloads when its tab is shown again (#34328)

This commit is contained in:
G30 authored and GitHub committed 2026-11-16 21:14:48 +09:00
1 parent 683654ec22
commit 67be4e963a
1 file changed
+2 -2
@@ -1,6 +1,6 @@
<script lang="ts">
import { getPageContext } from '$lib/utils/page';
const { goto } = getPageContext();
const { goto, active } = getPageContext();
import { formatSchedule } from '$lib/utils/schedule';
import { onMount, onDestroy, getContext } from 'svelte';
@@ -123,7 +123,7 @@
};
// Immediate response to page/filter changes (gate behind loaded)
$: if (loaded && page && statusFilter !== undefined) {
$: if (loaded && $active && page && statusFilter !== undefined) {
getAutomationList();
}