Skip to content

Commit 8c49f34

Browse files
table: remove highlighting on table without primary keys
1 parent 3b4c373 commit 8c49f34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/app/components/dashboard/db-table/db-table.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ export class DbTableComponent implements OnInit {
391391
}
392392

393393
isRowSelected(primaryKeys) {
394-
return this.selectedRow && JSON.stringify(this.selectedRow.primaryKeys) === JSON.stringify(primaryKeys);
394+
return this.selectedRow && Object.keys(this.selectedRow.primaryKeys).length && JSON.stringify(this.selectedRow.primaryKeys) === JSON.stringify(primaryKeys);
395395
}
396396

397397
showCopyNotification(message: string) {

0 commit comments

Comments
 (0)