From db5c092299471444c356216d5ef39b382ba1aa1e Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 26 Jul 2026 21:02:31 -0400 Subject: [PATCH] refac --- src/routes/(app)/automations/+page.svelte | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/routes/(app)/automations/+page.svelte b/src/routes/(app)/automations/+page.svelte index f67dca0cfd..33c56ae0f5 100644 --- a/src/routes/(app)/automations/+page.svelte +++ b/src/routes/(app)/automations/+page.svelte @@ -151,9 +151,6 @@ foldersLoaded = true; }; - const getFolderName = (folderId: string | null): string | null => - folderId ? (($folders ?? []).find((folder) => folder.id === folderId)?.name ?? null) : null; - const toggleHandler = async (automation: AutomationResponse) => { const res = await toggleAutomationById(localStorage.token, automation.id).catch((err) => { toast.error(`${err}`); @@ -344,7 +341,6 @@ loaded = true; syncHeader(); - void ensureFolders(); return () => { clearTimeout(searchDebounceTimer); @@ -537,7 +533,6 @@ {:else}
{#each automations as automation (automation.id)} - {@const folderName = getFolderName(automation.folder_id)}
- {#if folderName} -
- {folderName} -
- {/if} -