15768: fixed checkbox undefined Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox...
authorLisa Knox <lisaknox83@gmail.com>
Thu, 14 Sep 2023 01:25:02 +0000 (21:25 -0400)
committerLisa Knox <lisaknox83@gmail.com>
Thu, 14 Sep 2023 01:25:02 +0000 (21:25 -0400)
src/components/data-table/data-table.tsx

index 96f03651cb8b12d3de992734ef252a3bec97aa4b..155d772f85855ddd86a90ecc7842065d543e830f 100644 (file)
@@ -169,7 +169,7 @@ export const DataTable = withStyles(styles)(
                         type="checkbox"
                         name={uuid}
                         className={classes.checkBox}
-                        checked={checkedList[uuid] ? checkedList[uuid] : false}
+                        checked={checkedList && checkedList[uuid] ? checkedList[uuid] : false}
                         onChange={() => this.handleSelectOne(uuid)}
                         onDoubleClick={ev => ev.stopPropagation()}></input>
                 );