mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
fix: loading state
This commit is contained in:
parent
9d0f4a2152
commit
f72f58dbc4
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user