21128: checkboxes dont preserve through URL changes anymore Arvados-DCO-1.1-Signed...
authorLisa Knox <lisaknox83@gmail.com>
Thu, 30 Nov 2023 19:00:53 +0000 (14:00 -0500)
committerLisa Knox <lisaknox83@gmail.com>
Thu, 30 Nov 2023 19:00:53 +0000 (14:00 -0500)
src/components/data-table/data-table.tsx

index 24cd91403aebce649c3f893814745daabfb7f139..84d377bba13fb74ab89701a259f3615bf08d127b 100644 (file)
@@ -155,6 +155,9 @@ export const DataTable = withStyles(styles)(
                 if (items.length) this.initializeCheckedList(items);
                 else setCheckedListOnStore({});
             }
+            if (prevProps.currentRoute !== this.props.currentRoute) {
+                this.initializeCheckedList([])
+            }
         }
 
         componentWillUnmount(): void {