[arvados] updated: 2.7.0-5836-g78d24df44e

git repository hosting git at public.arvados.org
Mon Jan 22 15:17:17 UTC 2024


Summary of changes:
 services/workbench2/src/components/data-table/data-table.tsx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

       via  78d24df44eb539334c623cc5ccffc6a1554c3c33 (commit)
      from  bd9d5de7661670a0e812f70555f33ce7da7be799 (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 78d24df44eb539334c623cc5ccffc6a1554c3c33
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Mon Jan 22 10:17:10 2024 -0500

    21224: fixed first select-selectall bug Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/services/workbench2/src/components/data-table/data-table.tsx b/services/workbench2/src/components/data-table/data-table.tsx
index d3bbab5077..9c1641dc87 100644
--- a/services/workbench2/src/components/data-table/data-table.tsx
+++ b/services/workbench2/src/components/data-table/data-table.tsx
@@ -216,11 +216,12 @@ export const DataTable = withStyles(styles)(
         initializeCheckedList = (uuids: any[]): void => {
             const newCheckedList = { ...this.props.checkedList };
 
-            uuids.forEach(uuid => {
-                if (!newCheckedList.hasOwnProperty(uuid)) {
-                    newCheckedList[uuid] = false;
+            if(Object.keys(newCheckedList).length === 0){
+                for(const uuid of uuids){
+                    newCheckedList[uuid] = false
                 }
-            });
+            }
+
             for (const key in newCheckedList) {
                 if (!uuids.includes(key)) {
                     delete newCheckedList[key];

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list