mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-29 08:31:48 -05:00
fix: the Automations list reloads when its tab is shown again (#34328)
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user