From 0ef35a0ee0e2264a1cc7f3020304e8c357152c11 Mon Sep 17 00:00:00 2001 From: StyleZhang Date: Fri, 25 Oct 2024 10:41:05 +0800 Subject: [PATCH] fix: enable_marketplace --- web/app/components/plugins/plugin-page/index.tsx | 4 ++-- web/app/components/tools/provider-list.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsx index 9d432df664..7335dfbb16 100644 --- a/web/app/components/plugins/plugin-page/index.tsx +++ b/web/app/components/plugins/plugin-page/index.tsx @@ -100,7 +100,7 @@ const PluginPage = ({ return [ { value: 'plugins', text: t('common.menus.plugins') }, ...( - !enable_marketplace + enable_marketplace ? [{ value: 'discover', text: 'Explore Marketplace' }] : [] ), @@ -214,7 +214,7 @@ const PluginPage = ({ )} { - activeTab === 'discover' && !enable_marketplace && marketplace + activeTab === 'discover' && enable_marketplace && marketplace } {showPluginSettingModal && ( diff --git a/web/app/components/tools/provider-list.tsx b/web/app/components/tools/provider-list.tsx index 3f2593020e..7a8ceff0db 100644 --- a/web/app/components/tools/provider-list.tsx +++ b/web/app/components/tools/provider-list.tsx @@ -118,7 +118,7 @@ const ProviderList = () => { {!filteredCollectionList.length &&
} { - !enable_marketplace && ( + enable_marketplace && ( { containerRef.current?.scrollTo({ top: containerRef.current.scrollHeight, behavior: 'smooth' }) }} />