From 6de9a2af9702047d923f3f86c392557197915d0c Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 1 Apr 2026 00:59:09 -0500 Subject: [PATCH] refac --- src/routes/(app)/automations/+page.svelte | 45 ++++++++++++++--------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/src/routes/(app)/automations/+page.svelte b/src/routes/(app)/automations/+page.svelte index ca972fd7a..9338e2fd4 100644 --- a/src/routes/(app)/automations/+page.svelte +++ b/src/routes/(app)/automations/+page.svelte @@ -67,15 +67,12 @@ loading = true; try { - const res = await getAutomationItems( - localStorage.token, - query, - statusFilter, - page - ).catch((error) => { - toast.error(`${error}`); - return null; - }); + const res = await getAutomationItems(localStorage.token, query, statusFilter, page).catch( + (error) => { + toast.error(`${error}`); + return null; + } + ); if (res) { automations = res.items; @@ -154,7 +151,8 @@ const days = parts.BYDAY || ''; return days ? `${days} at ${time}` : `Weekly at ${time}`; } - if (freq === 'MONTHLY') return `Monthly on the ${parts.BYMONTHDAY || '1'}${ordinal(parts.BYMONTHDAY || '1')} at ${time}`; + if (freq === 'MONTHLY') + return `Monthly on the ${parts.BYMONTHDAY || '1'}${ordinal(parts.BYMONTHDAY || '1')} at ${time}`; return rrule; }; @@ -211,7 +209,7 @@ >
{#if loaded} -
+
@@ -288,7 +286,9 @@
-
+