Skip to content

Modern Docker Management, Designed for Everyone

fix: incorrect containers showing on auto updater exlcude settings

Kyle Mendell5078e31daaa4
diff --git a/frontend/src/routes/(app)/environments/[id]/components/JobsTab.svelte b/frontend/src/routes/(app)/environments/[id]/components/JobsTab.svelte
index c528b0910..3e9349f1a 100644
--- a/frontend/src/routes/(app)/environments/[id]/components/JobsTab.svelte
+++ b/frontend/src/routes/(app)/environments/[id]/components/JobsTab.svelte
@@ -43,8 +43,11 @@
});
const containersPromise = $derived.by(async () => {
+ if (!environmentId) return [];
if (!$formInputs.autoUpdate.value && !$formInputs.autoHealEnabled.value) return [];
- const result = await tryCatch(containerService.getContainers({ pagination: { page: 1, limit: 100 } }));
+ const result = await tryCatch(
+ containerService.getContainersForEnvironment(environmentId, { pagination: { page: 1, limit: 100 } })
+ );
if (result.error) throw result.error;
return result.data.data;
});