biigle / largo

:m: BIIGLE module to review image annotations in a regular grid
GNU General Public License v3.0
0 stars 1 forks source link

Sort by outliers fails when no label is selected #174

Closed dlangenk closed 4 days ago

dlangenk commented 5 days ago

The failure is expected but there is an error message "The route api/v1/volumes/18333/annotations/sort/outliers could not be found.", which should not be displayed. Instead either a message: "Please select a label first" or nothing (likely prevent the api call if no label is selected is even better) should happen. Another option would be to make the sort tab non-selectable if no label was selected. The error also occurs if you unselect a label so that no label is currently selected.

Steps to reproduce:

  1. Open Largo
  2. Select the sort tab (without selecting a label first)
  3. Click on Outliers.