Skip to content

Commit d89cb9c

Browse files
committed
fixed bug with DuplicateFinder
1 parent 6ada600 commit d89cb9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/views/tools/DuplicateFinder/DuplicateFinder.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ function ProjectDuplicateDocuments() {
129129

130130
return { data: result, rowCount: result.reduce((acc, group) => acc + group.subRows.length, 0) };
131131
}, [duplicateFinderJob.data]);
132+
console.log(data);
132133

133134
const isLoading =
134135
isPending ||
@@ -150,7 +151,7 @@ function ProjectDuplicateDocuments() {
150151
rowVirtualizerOptions: { overscan: 4 },
151152
// selection
152153
enableRowSelection(row) {
153-
return row.original.subRows.length === 0; //only allow selection of leaf rows
154+
return row.subRows?.length === 0; //only allow selection of leaf rows
154155
},
155156
onRowSelectionChange: setRowSelection, //connect internal row selection state to your own
156157
state: {

0 commit comments

Comments
 (0)