mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
main
This commit is contained in:
@ -20,7 +20,7 @@ import type { ListRef } from '@/app/components/workflow/block-selector/market-pl
|
||||
import PluginList, { type ListProps } from '@/app/components/workflow/block-selector/market-place-plugin/list'
|
||||
import { PluginType } from '../../plugins/types'
|
||||
import { useMarketplacePlugins } from '../../plugins/marketplace/hooks'
|
||||
import { useSelector as useAppContextSelector } from '@/context/app-context'
|
||||
import { useGlobalPublicStore } from '@/context/global-public-context'
|
||||
|
||||
type AllToolsProps = {
|
||||
className?: string
|
||||
@ -91,7 +91,7 @@ const AllTools = ({
|
||||
plugins: notInstalledPlugins = [],
|
||||
} = useMarketplacePlugins()
|
||||
|
||||
const { enable_marketplace } = useAppContextSelector(s => s.systemFeatures)
|
||||
const { enable_marketplace } = useGlobalPublicStore(s => s.systemFeatures)
|
||||
|
||||
useEffect(() => {
|
||||
if (enable_marketplace) return
|
||||
|
||||
Reference in New Issue
Block a user