Skip to content

Commit

Permalink
set the entire props.item instead of just the id
Browse files Browse the repository at this point in the history
Co-authored-by: Charles Wahome <thewahome.cw@gmail.com>
  • Loading branch information
gracet9182 and thewahome authored Aug 9, 2021
1 parent d96eae7 commit dc37ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/views/sidebar/sample-queries/SampleQueries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class SampleQueries extends Component<ISampleQueriesProps, any> {
this.querySelected(props.item);
}
this.resetCollapse = false;
this.setState({ selectedQuery: props.item.id })
this.setState({ selectedQuery: props.item})
}}
className={
classes.queryRow +
Expand Down

0 comments on commit dc37ca6

Please sign in to comment.