Describe the bug
When browsing the Platform, the associations on the fly (AOTF) view does not reset the sorting state when the user switches between different entities of the same type (e.g. between targets, between diseases).
Observed behaviour
When viewing associations for a disease in AOTF, if I click to sort the evidence based on a datasource, then switch to a different disease, the AOTF evidence for the new disease is still sorted by the selected datasource, rather than by the overall association score.
This also happens when viewing associations for a target, and switching to a different targets.
This does not happen when switching from a disease to a target, or a target to a disease.
Expected behaviour
When switching to a different entity, the sorting state should reset to default (overall association score).
Describe the bug When browsing the Platform, the associations on the fly (AOTF) view does not reset the sorting state when the user switches between different entities of the same type (e.g. between targets, between diseases).
Observed behaviour When viewing associations for a disease in AOTF, if I click to sort the evidence based on a datasource, then switch to a different disease, the AOTF evidence for the new disease is still sorted by the selected datasource, rather than by the overall association score.
This also happens when viewing associations for a target, and switching to a different targets.
This does not happen when switching from a disease to a target, or a target to a disease.
Expected behaviour When switching to a different entity, the sorting state should reset to default (overall association score).
To Reproduce Steps to reproduce the behaviour: