From 352eb23fb237c3674eb041147f6e12792c72e6c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=B0=94=E7=9B=96=20=7C=7C=E2=86=93?= Date: Sun, 16 Feb 2025 09:34:23 +0300 Subject: [PATCH] Fix linting errors --- .../command-palette/command-palette-item.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/frontend-app/src/components/command-palette/command-palette-item.component.ts b/lib/frontend-app/src/components/command-palette/command-palette-item.component.ts index e001e9036..d42bd8cb7 100644 --- a/lib/frontend-app/src/components/command-palette/command-palette-item.component.ts +++ b/lib/frontend-app/src/components/command-palette/command-palette-item.component.ts @@ -41,7 +41,7 @@ export const OrdoCommandPaletteItem = (item: Ordo.CommandPalette.Item, on_click: : void 0 on_mount(() => { - if (is_current && !is_in_view(element as Element, element.parentElement!)) + if (element instanceof HTMLElement && is_current && !is_in_view(element, element.parentElement!)) element.scrollIntoView?.({ behavior: "smooth", inline: "center", block: "center" }) })