mirror of
https://github.com/langgenius/dify.git
synced 2026-02-20 10:01:59 -05:00
fix(sandbox-provider): prevent permission hint flash on page load
Use strict equality check to only show no-permission message when isCurrentWorkspaceOwner is explicitly false, not undefined.
This commit is contained in:
@@ -73,7 +73,7 @@ const SandboxProviderPage = () => {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{!isCurrentWorkspaceOwner && (
|
||||
{isCurrentWorkspaceOwner === false && (
|
||||
<div className="system-xs-regular text-text-tertiary">
|
||||
{t('sandboxProvider.noPermission', { ns: 'common' })}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user