From 45963ffce07aade5af26302f854a78c2c5690c68 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Wed, 12 Jun 2024 19:43:41 -0300 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20(index.tsx):=20remove=20un?= =?UTF-8?q?necessary=20trailing=20commas=20to=20improve=20code=20readabili?= =?UTF-8?q?ty=20=F0=9F=90=9B=20(index.tsx):=20fix=20conditional=20renderin?= =?UTF-8?q?g=20of=20Download=20option=20in=20toolbar=20=E2=9C=A8=20(Profil?= =?UTF-8?q?ePictureForm):=20add=20setLoading(false)=20after=20updating=20s?= =?UTF-8?q?tate=20to=20ensure=20loading=20state=20is=20reset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/nodeToolbarComponent/index.tsx | 27 ++++++++++--------- .../components/ProfilePictureForm/index.tsx | 1 + 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx index 20d282f72..8d217b2b2 100644 --- a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx @@ -625,7 +625,7 @@ export default function NodeToolbarComponent({ /> )} - {(!hasStore || !hasApiKey || !validApiKey) && ( + {/* {(!hasStore || !hasApiKey || !validApiKey) && ( - )} + )} */} - - obj.name === "Download")?.shortcut! - } - value={"Download"} - icon={"Download"} - dataTestId="download-button-modal" - /> - + {(!hasStore || !hasApiKey || !validApiKey) && ( + + obj.name === "Download") + ?.shortcut! + } + value={"Download"} + icon={"Download"} + dataTestId="download-button-modal" + /> + + )}