From cb682519f2300436bc5a2ae3e62cce90f122ed70 Mon Sep 17 00:00:00 2001 From: Mim Hastie Date: Thu, 14 Oct 2021 12:49:04 -0700 Subject: [PATCH 1/2] Updated help and documentation links. (#145) (#146) --- client/src/components/floatingButton/floatingButton.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/floatingButton/floatingButton.tsx b/client/src/components/floatingButton/floatingButton.tsx index c80de514b..6f5cf77fe 100644 --- a/client/src/components/floatingButton/floatingButton.tsx +++ b/client/src/components/floatingButton/floatingButton.tsx @@ -17,19 +17,19 @@ function FloatingButton(): JSX.Element { content={ Date: Thu, 14 Oct 2021 19:13:34 -0700 Subject: [PATCH 2/2] fix: Full fix QuickGene (#151) --- .../components/geneExpression/quickGene.tsx | 33 +++++++++---------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/client/src/components/geneExpression/quickGene.tsx b/client/src/components/geneExpression/quickGene.tsx index e38b73a68..b4a620fbc 100644 --- a/client/src/components/geneExpression/quickGene.tsx +++ b/client/src/components/geneExpression/quickGene.tsx @@ -116,25 +116,22 @@ function QuickGene() { threshold: -10000, // don't return bad results }); - // eslint-disable-next-line @typescript-eslint/no-explicit-any --- FIXME: disabled temporarily on migrate to TS. - const removeGene = (gene: any) => () => { - dispatch({ type: "clear user defined gene", data: gene }); - }; + const QuickGenes = useMemo((): JSX.Element => { + const removeGene = (gene: any) => () => { + dispatch({ type: "clear user defined gene", data: gene }); + }; - const QuickGenes = useMemo( - () => - // eslint-disable-next-line @typescript-eslint/no-explicit-any --- FIXME: disabled temporarily on migrate to TS. - userDefinedGenes.map((gene: any) => ( - - )), - [userDefinedGenes] - ); + // eslint-disable-next-line @typescript-eslint/no-explicit-any --- FIXME: disabled temporarily on migrate to TS. + return userDefinedGenes.map((gene: any) => ( + + )); + }, [userDefinedGenes, dispatch]); return (