From 9cd5712fafbb8b4cb3af9966ed5b04402f9bfa14 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Mon, 29 Dec 2025 11:35:54 +0800 Subject: [PATCH] type check --- web/app/components/plugins/marketplace/context.tsx | 2 +- web/app/components/plugins/plugin-page/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/plugins/marketplace/context.tsx b/web/app/components/plugins/marketplace/context.tsx index caf000261c..97144630a6 100644 --- a/web/app/components/plugins/marketplace/context.tsx +++ b/web/app/components/plugins/marketplace/context.tsx @@ -119,7 +119,7 @@ export const MarketplaceContextProvider = ({ // Initialize from URL params (legacy support) or use nuqs state const queryFromSearchParams = searchParams?.q || urlFilters.q - const tagsFromSearchParams = getValidTagKeys(urlFilters.tags) + const tagsFromSearchParams = getValidTagKeys(urlFilters.tags as TagKey[]) const hasValidTags = !!tagsFromSearchParams.length const hasValidCategory = getValidCategoryKeys(urlFilters.category) const categoryFromSearchParams = hasValidCategory || PLUGIN_TYPE_SEARCH_MAP.all diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsx index 75ed425728..ef49c818c5 100644 --- a/web/app/components/plugins/plugin-page/index.tsx +++ b/web/app/components/plugins/plugin-page/index.tsx @@ -49,7 +49,7 @@ const PluginPage = ({ }: PluginPageProps) => { const { t } = useTranslation() const { locale } = useContext(I18n) - useDocumentTitle(t('plugin.metadata.title')) + useDocumentTitle(t('metadata.title', { ns: 'plugin' })) // Use nuqs hook for installation state const [{ packageId, bundleInfo }, setInstallState] = usePluginInstallation()