fix(extraSidebarComponent): update condition to show ExportMemo buttun based on hasApiKey and validApiKey variables Github Issue: https://github.com/logspace-ai/langflow/issues/1227
This commit is contained in:
commit
7d40090364
1 changed files with 2 additions and 2 deletions
|
|
@ -231,7 +231,7 @@ export default function ExtraSidebar(): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<div className="side-bar-arrangement">
|
<div className="side-bar-arrangement">
|
||||||
<div className="side-bar-buttons-arrangement">
|
<div className="side-bar-buttons-arrangement">
|
||||||
{hasStore && (
|
{hasStore && validApiKey && (
|
||||||
<ShadTooltip
|
<ShadTooltip
|
||||||
content={
|
content={
|
||||||
!hasApiKey || !validApiKey
|
!hasApiKey || !validApiKey
|
||||||
|
|
@ -263,7 +263,7 @@ export default function ExtraSidebar(): JSX.Element {
|
||||||
</button>
|
</button>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
</div>
|
</div>
|
||||||
{!hasStore && ExportMemo}
|
{(!hasApiKey || !validApiKey) && ExportMemo}
|
||||||
<ShadTooltip content={"Code"} side="top">
|
<ShadTooltip content={"Code"} side="top">
|
||||||
<div className="side-bar-button">
|
<div className="side-bar-button">
|
||||||
{flow && flow.data && (
|
{flow && flow.data && (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue