BUGFIX: Issue GITHUB #1227 (#1237)

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:
Gabriel Luiz Freitas Almeida 2023-12-21 16:04:36 -03:00 committed by GitHub
commit 7d40090364
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -231,7 +231,7 @@ export default function ExtraSidebar(): JSX.Element {
return (
<div className="side-bar-arrangement">
<div className="side-bar-buttons-arrangement">
{hasStore && (
{hasStore && validApiKey && (
<ShadTooltip
content={
!hasApiKey || !validApiKey
@ -263,7 +263,7 @@ export default function ExtraSidebar(): JSX.Element {
</button>
</ShadTooltip>
</div>
{!hasStore && ExportMemo}
{(!hasApiKey || !validApiKey) && ExportMemo}
<ShadTooltip content={"Code"} side="top">
<div className="side-bar-button">
{flow && flow.data && (