export class SearchResultsTable extends React.Component<any> {
public componentDidMount() {
if (isEmpty(this.props.results.data)) {
this.props.search()
}
}
so it's not filtering on anything, not even amplicon or taxonomy, so the results are completely bogus.
Short term fix is probably just to get rid of componentDidMount() and let people click the "search" button to see the results. They're going to do this anyway, so there's no point in filling the table with an initial set of sample Ids, especially since they don't relate to any of the selected taxonomy, trait or amplicon options.
search needs to be delayed until we have all the taxonomy and trait options or we will end up fetching the wrong samples
This is due to
see https://github.com/BioplatformsAustralia/bpaotu/blob/9248eae9f21ec2145283725ac9b22b9c4296de97/frontend/src/components/search_results_table.tsx#L43
In this case the search is run with
so it's not filtering on anything, not even amplicon or taxonomy, so the results are completely bogus.
Short term fix is probably just to get rid of
componentDidMount()
and let people click the "search" button to see the results. They're going to do this anyway, so there's no point in filling the table with an initial set of sample Ids, especially since they don't relate to any of the selected taxonomy, trait or amplicon options.search needs to be delayed until we have all the taxonomy and trait options or we will end up fetching the wrong samples