Fix navigation state handling in layout component
Publish telemt-api gateway Docker image / test (push) Successful in 23s
Publish telemt-api gateway Docker image / build-and-push (push) Successful in 2m18s

- Updated the `isNavigating` derived variable to use a boolean conversion instead of a strict null check, preventing the navigation indicator from hanging when `navigating` is undefined.
- Added a comment to clarify the reason for this change, enhancing code readability and maintainability.
This commit is contained in:
Denozordec
2026-04-11 15:25:26 +07:00
parent 7c6892ce0e
commit 6b2e38d051
+2 -1
View File
@@ -15,7 +15,8 @@
let { children } = $props();
const docTitle = $derived(`${panelTitleFromPath(page.url.pathname)} · Telemt Panel`);
const isNavigating = $derived(navigating !== null);
/** Нельзя использовать `!== null`: при `navigating === undefined` выражение истинно и полоска «зависает». */
const isNavigating = $derived(!!navigating);
let serverAliases = $state<string[]>([]);