From f54d1dc829be5b669e2e0d0a48801cacad78efe2 Mon Sep 17 00:00:00 2001 From: Ken Kunz Date: Mon, 9 Dec 2024 13:00:26 -0600 Subject: [PATCH] exclude disconnected strategies from home page --- src/routes/+page.server.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts index 51d6a3e2d..bccb9104a 100644 --- a/src/routes/+page.server.ts +++ b/src/routes/+page.server.ts @@ -1,7 +1,9 @@ import { getCachedStrategies } from 'trade-executor/models/strategy-info'; export async function load({ fetch }) { - const strategies = (await getCachedStrategies(fetch)).filter((s) => s.frontpage); + const strategies = await getCachedStrategies(fetch); - return { strategies }; + return { + strategies: strategies.filter((s) => s.frontpage && s.connected) + }; }