mirror of
https://github.com/langgenius/dify.git
synced 2026-03-30 02:20:16 +08:00
fix: loading state
This commit is contained in:
@ -11,7 +11,7 @@ import SwitchModal from './switch-modal'
|
||||
|
||||
const SandboxProviderPage = () => {
|
||||
const { t } = useTranslation()
|
||||
const { isCurrentWorkspaceOwner } = useAppContext()
|
||||
const { isCurrentWorkspaceOwner, isLoadingCurrentWorkspace } = useAppContext()
|
||||
const { data: providers, isLoading } = useGetSandboxProviderList()
|
||||
|
||||
const [configModalProvider, setConfigModalProvider] = useState<SandboxProvider | null>(null)
|
||||
@ -73,7 +73,7 @@ const SandboxProviderPage = () => {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{isCurrentWorkspaceOwner === false && (
|
||||
{!isLoadingCurrentWorkspace && !isCurrentWorkspaceOwner && (
|
||||
<div className="system-xs-regular text-text-tertiary">
|
||||
{t('sandboxProvider.noPermission', { ns: 'common' })}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user