[arvados-workbench2] updated: 2.6.0-31-gf0f6c4a0

git repository hosting git at public.arvados.org
Wed May 31 13:52:13 UTC 2023


Summary of changes:
 src/components/tree/tree.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  f0f6c4a0d9d29b0e9651b79096f264093c298c9a (commit)
      from  fe0f3f07a4dea0506844d47529752484cf0347a7 (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 f0f6c4a0d9d29b0e9651b79096f264093c298c9a
Author: Stephen Smith <stephen at curii.com>
Date:   Wed May 31 09:50:30 2023 -0400

    20031: Try to fix unit test
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/src/components/tree/tree.tsx b/src/components/tree/tree.tsx
index 9c001e7a..28f1966a 100644
--- a/src/components/tree/tree.tsx
+++ b/src/components/tree/tree.tsx
@@ -317,7 +317,7 @@ export const Tree = withStyles(styles)(
         // Scroll to selected item whenever it changes, accepts selectedRef from props for recursive trees
         const [cachedSelectedRef, setCachedRef] = useState<HTMLDivElement | null>(null)
         const selectedRef = props.selectedRef || useCallback((node: HTMLDivElement | null) => {
-            if (node && node !== cachedSelectedRef) {
+            if (node && node.scrollIntoView && node !== cachedSelectedRef) {
                 node.scrollIntoView({ behavior: "smooth", block: "center" });
             }
             setCachedRef(node);

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list