Skip to content

Commit

Permalink
Index fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wobba committed May 28, 2023
1 parent a2657ce commit a576be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search-parts/src/components/DetailsListComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export class DetailsListComponent extends React.Component<IDetailsListComponentP

const { columns, items } = this.state;

let focusIndex = 0;
let focusIndex = -1;
if (this.props.selectedKeys && this.props.selectedKeys.length > 0) {
const key = this.props.selectedKeys[0];
focusIndex = items.findIndex(item => item.key == key);
Expand Down

0 comments on commit a576be3

Please sign in to comment.