mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 09:26:47 +00:00
Fixed the bug with empty variables
This commit is contained in:
@@ -106,7 +106,7 @@ const SideBar = ({
|
|||||||
blurred={false}
|
blurred={false}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{data[0]?.value ? (
|
{(data[0]?.value || data[0]?.value === "") ? (
|
||||||
<div
|
<div
|
||||||
className={`relative mt-2 px-4 ${
|
className={`relative mt-2 px-4 ${
|
||||||
overrideEnabled && 'opacity-40 pointer-events-none'
|
overrideEnabled && 'opacity-40 pointer-events-none'
|
||||||
@@ -134,7 +134,7 @@ const SideBar = ({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="mt-4 px-4">
|
<div className="mt-4 px-4">
|
||||||
{data[0]?.value && (
|
{(data[0]?.value || data[0]?.value === "") && (
|
||||||
<div className="flex flex-row items-center justify-between my-2 pl-1 pr-2">
|
<div className="flex flex-row items-center justify-between my-2 pl-1 pr-2">
|
||||||
<p className="text-sm text-bunker-300">{t('dashboard:sidebar.override')}</p>
|
<p className="text-sm text-bunker-300">{t('dashboard:sidebar.override')}</p>
|
||||||
<Toggle
|
<Toggle
|
||||||
|
|||||||
Reference in New Issue
Block a user