From f47656886920156c71900eade527d148b0e7fa9b Mon Sep 17 00:00:00 2001 From: IK Date: Tue, 22 Sep 2026 20:49:05 +0700 Subject: [PATCH] feat: recover from invalid filter states --- apps/web/src/components/StatePanel.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/StatePanel.astro b/apps/web/src/components/StatePanel.astro index 5fab48a..565dc68 100644 --- a/apps/web/src/components/StatePanel.astro +++ b/apps/web/src/components/StatePanel.astro @@ -1,7 +1,7 @@ --- const { title, description, actionHref, actionLabel, tone = "empty", compact = false, contained = true } = Astro.props as { title: string; description?: string; actionHref?: string; actionLabel?: string; tone?: "empty" | "error" | "unavailable"; compact?: boolean; contained?: boolean }; -const retryHref = actionHref ?? (tone === "unavailable" ? `${Astro.url.pathname}${Astro.url.search}` : undefined); -const retryLabel = actionLabel ?? (tone === "unavailable" ? "Повторить загрузку" : undefined); +const retryHref = actionHref ?? (tone === "unavailable" ? `${Astro.url.pathname}${Astro.url.search}` : tone === "error" ? Astro.url.pathname : undefined); +const retryLabel = actionLabel ?? (tone === "unavailable" ? "Повторить загрузку" : tone === "error" ? "Вернуться к разделу" : undefined); ---

{title}