Skip to content

Commit 5bf39ee

Browse files
committed
fix: do not crash if row is empty
1 parent e8b0118 commit 5bf39ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/data_library/LibraryDataGrid.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ export const LibraryDataGrid: React.FC<LibraryDataGridProps> = ({
9696

9797
// Check if a row is selectable
9898
const isRowSelectable = (params: { row: DatasetTerm | StudyAggregation }) => {
99+
if (!params.row) {
100+
return false
101+
}
102+
99103
if (assetType === AssetType.DATASETS) {
100104
const dataset = params.row as DatasetTerm
101105
return (

0 commit comments

Comments
 (0)