Skip to content

Bug: Strange selected term behavior #183

@theosiemensrhodes

Description

@theosiemensrhodes

Currently there are many places that are competing to keep selected termId in sync. The ways selected term should operate are:

  • On initial page load, select the "current" term (this comes from the backend)
  • When deleting a term, select another term in the list if there is one to become the selected term (first in list is easiest)
  • When creating a term, after it has been created, select it

This current logic is in

  • src/components/classes/list/components/term-select.tsx
  • src/components/classes/list/class-list-view.tsx
  • src/components/classes/list/classes-empty-view.tsx

but the current behavior is not as expected, on page load it doesn't select the current term but the first term in the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions