[arvados] updated: 2.7.0-5837-g34bd45feaa
git repository hosting
git at public.arvados.org
Mon Jan 22 15:53:56 UTC 2024
Summary of changes:
.../src/components/multiselect-toolbar/MultiselectToolbar.tsx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
via 34bd45feaa38754b7715e62dafe59d191a3b653b (commit)
from 78d24df44eb539334c623cc5ccffc6a1554c3c33 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 34bd45feaa38754b7715e62dafe59d191a3b653b
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Mon Jan 22 10:53:49 2024 -0500
21224: fixed memleak err message Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/services/workbench2/src/components/multiselect-toolbar/MultiselectToolbar.tsx b/services/workbench2/src/components/multiselect-toolbar/MultiselectToolbar.tsx
index cebf3cf259..32f4fedc06 100644
--- a/services/workbench2/src/components/multiselect-toolbar/MultiselectToolbar.tsx
+++ b/services/workbench2/src/components/multiselect-toolbar/MultiselectToolbar.tsx
@@ -109,16 +109,20 @@ export const MultiselectToolbar = connect(
const currentResourceKinds = singleResourceKind ? singleResourceKind : Array.from(selectedToKindSet(checkedList));
const currentPathIsTrash = window.location.pathname === "/trash";
const [isTransitioning, setIsTransitioning] = useState(false);
+ let transitionTimeout;
const handleTransition = () => {
setIsTransitioning(true)
- setTimeout(() => {
+ transitionTimeout = setTimeout(() => {
setIsTransitioning(false)
}, WIDTH_TRANSITION);
}
useEffect(()=>{
handleTransition()
+ return () => {
+ if(transitionTimeout) clearTimeout(transitionTimeout)
+ };
}, [checkedList])
const actions =
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list